git/builtin
brian m. carlson 30e677e0e2 strbuf: convert strbuf_add_unique_abbrev to use struct object_id
Convert the declaration and definition of strbuf_add_unique_abbrev to
make it take a pointer to struct object_id.  Predeclare the struct in
strbuf.h, as cache.h includes strbuf.h before it declares the struct,
and otherwise the struct declaration would have the wrong scope.

Apply the following semantic patch, along with the standard object_id
transforms, to adjust the callers:

@@
expression E1, E2, E3;
@@
- strbuf_add_unique_abbrev(E1, E2.hash, E3);
+ strbuf_add_unique_abbrev(E1, &E2, E3);

@@
expression E1, E2, E3;
@@
- strbuf_add_unique_abbrev(E1, E2->hash, E3);
+ strbuf_add_unique_abbrev(E1, E2, E3);

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2018-03-14 09:23:48 -07:00
..
add.c
am.c cache-tree: convert write_*_as_tree to object_id 2018-03-14 09:23:47 -07:00
annotate.c
apply.c
archive.c correct error messages for NULL packet_read_line() 2018-02-08 12:37:30 -08:00
bisect--helper.c
blame.c blame: tighten command line parser 2018-02-07 12:41:36 -08:00
branch.c Merge branch 'ks/branch-cleanup' 2017-12-27 11:16:25 -08:00
bundle.c
cat-file.c Merge branch 'bw/c-plus-plus' 2018-03-06 14:54:07 -08:00
check-attr.c
check-ignore.c check-ignore: fix mix of directories and other file types 2018-02-12 13:09:35 -08:00
check-mailmap.c
check-ref-format.c
checkout-index.c
checkout.c strbuf: convert strbuf_add_unique_abbrev to use struct object_id 2018-03-14 09:23:48 -07:00
clean.c
clone.c Merge branch 'jk/abort-clone-with-existing-dest' into maint 2018-02-15 15:18:13 -08:00
column.c
commit-tree.c commit: convert commit_tree* to object_id 2018-01-30 10:42:36 -08:00
commit.c Merge branch 'ab/gc-auto-in-commit' 2018-03-08 12:36:30 -08:00
config.c
count-objects.c
credential.c
describe.c Merge branch 'sb/describe-blob' 2018-02-27 10:33:57 -08:00
diff-files.c
diff-index.c
diff-tree.c object: rename function 'typename' to 'type_name' 2018-02-14 13:10:05 -08:00
diff.c
difftool.c
fast-export.c object: rename function 'typename' to 'type_name' 2018-02-14 13:10:05 -08:00
fetch-pack.c fetch: inherit filter-spec from partial clone 2017-12-08 09:58:52 -08:00
fetch.c strbuf: convert strbuf_add_unique_abbrev to use struct object_id 2018-03-14 09:23:48 -07:00
fmt-merge-msg.c Merge branch 'rs/fmt-merge-msg-string-leak-fix' 2017-12-27 11:16:23 -08:00
for-each-ref.c
fsck.c Merge branch 'bw/c-plus-plus' 2018-03-06 14:54:07 -08:00
gc.c gc: do not repack promisor packfiles 2017-12-08 09:52:42 -08:00
get-tar-commit-id.c
grep.c Merge branch 'rv/grep-cleanup' 2018-03-08 12:36:25 -08:00
hash-object.c sha1_file: rename hash_sha1_file_literally 2018-01-30 10:42:36 -08:00
help.c help: rename 'new' variables 2018-02-22 10:08:05 -08:00
index-pack.c Merge branch 'bw/c-plus-plus' 2018-03-06 14:54:07 -08:00
init-db.c init-db: rename 'template' variables 2018-02-22 10:08:05 -08:00
interpret-trailers.c
log.c tree: convert read_tree_recursive to struct object_id 2018-03-14 09:23:47 -07:00
ls-files.c resolve-undo: convert struct resolve_undo_info to object_id 2018-03-14 09:23:47 -07:00
ls-remote.c
ls-tree.c tree: convert read_tree_recursive to struct object_id 2018-03-14 09:23:47 -07:00
mailinfo.c
mailsplit.c
merge-base.c
merge-file.c
merge-index.c
merge-ours.c
merge-recursive.c
merge-tree.c
merge.c cache-tree: convert write_*_as_tree to object_id 2018-03-14 09:23:47 -07:00
mktag.c sha1_file: convert write_sha1_file to object_id 2018-01-30 10:42:36 -08:00
mktree.c Merge branch 'bw/c-plus-plus' 2018-03-06 14:54:07 -08:00
mv.c Merge branch 'sm/mv-dry-run-update' 2018-03-06 14:54:00 -08:00
name-rev.c
notes.c sha1_file: convert write_sha1_file to object_id 2018-01-30 10:42:36 -08:00
pack-objects.c Merge branch 'bw/c-plus-plus' 2018-03-06 14:54:07 -08:00
pack-redundant.c pack-redundant: rename 'new' variables 2018-02-22 10:08:05 -08:00
pack-refs.c
patch-id.c
prune-packed.c
prune.c Merge branch 'bw/c-plus-plus' 2018-03-06 14:54:07 -08:00
pull.c Merge branch 'sb/pull-rebase-submodule' 2018-02-15 14:55:43 -08:00
push.c
read-tree.c
rebase--helper.c Merge branch 'gs/rebase-allow-empty-message' 2018-02-21 12:45:04 -08:00
receive-pack.c sha1_file: convert write_sha1_file to object_id 2018-01-30 10:42:36 -08:00
reflog.c reflog: rename 'new' variables 2018-02-22 10:08:05 -08:00
remote-ext.c
remote-fd.c
remote.c remote: rename 'new' variables 2018-02-22 10:08:05 -08:00
repack.c gc: do not repack promisor packfiles 2017-12-08 09:52:42 -08:00
replace.c Merge branch 'bw/c-plus-plus' 2018-03-06 14:54:07 -08:00
rerere.c
reset.c Merge branch 'tg/reset-hard-show-head-with-pretty' 2018-02-15 14:55:45 -08:00
rev-list.c Merge branch 'jk/cached-commit-buffer' 2018-03-06 14:54:05 -08:00
rev-parse.c Merge branch 'bw/c-plus-plus' 2018-03-06 14:54:07 -08:00
revert.c sequencer: improve config handling 2017-12-13 11:15:14 -08:00
rm.c submodule: convert stage_updated_gitmodules to take a struct index_state 2017-12-12 12:35:20 -08:00
send-pack.c
shortlog.c
show-branch.c Merge branch 'ot/pretty' 2017-12-27 11:16:29 -08:00
show-ref.c
stripspace.c
submodule--helper.c submodule: port submodule subcommand 'deinit' from shell to C 2018-01-16 11:29:50 -08:00
symbolic-ref.c
tag.c strbuf: convert strbuf_add_unique_abbrev to use struct object_id 2018-03-14 09:23:48 -07:00
unpack-file.c
unpack-objects.c Merge branch 'bw/c-plus-plus' 2018-03-06 14:54:07 -08:00
update-index.c
update-ref.c
update-server-info.c
upload-archive.c
var.c
verify-commit.c object: rename function 'typename' to 'type_name' 2018-02-14 13:10:05 -08:00
verify-pack.c
verify-tag.c
worktree.c Merge branch 'es/worktree-add-post-checkout-hook' 2018-02-28 13:37:53 -08:00
write-tree.c cache-tree: convert write_*_as_tree to object_id 2018-03-14 09:23:47 -07:00