• brian m. carlson's avatar
    sha1_file: convert sha1_object_info* to object_id · abef9020
    brian m. carlson authored
    Convert sha1_object_info and sha1_object_info_extended to take pointers
    to struct object_id and rename them to use "oid" instead of "sha1" in
    their names.  Update the declaration and definition and apply the
    following semantic patch, plus the standard object_id transforms:
    
    @@
    expression E1, E2;
    @@
    - sha1_object_info(E1.hash, E2)
    + oid_object_info(&E1, E2)
    
    @@
    expression E1, E2;
    @@
    - sha1_object_info(E1->hash, E2)
    + oid_object_info(E1, E2)
    
    @@
    expression E1, E2, E3;
    @@
    - sha1_object_info_extended(E1.hash, E2, E3)
    + oid_object_info_extended(&E1, E2, E3)
    
    @@
    expression E1, E2, E3;
    @@
    - sha1_object_info_extended(E1->hash, E2, E3)
    + oid_object_info_extended(E1, E2, E3)
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    abef9020
Name
Last commit
Last update
..
add.c Loading commit data...
am.c Loading commit data...
annotate.c Loading commit data...
apply.c Loading commit data...
archive.c Loading commit data...
bisect--helper.c Loading commit data...
blame.c Loading commit data...
branch.c Loading commit data...
bundle.c Loading commit data...
cat-file.c Loading commit data...
check-attr.c Loading commit data...
check-ignore.c Loading commit data...
check-mailmap.c Loading commit data...
check-ref-format.c Loading commit data...
checkout-index.c Loading commit data...
checkout.c Loading commit data...
clean.c Loading commit data...
clone.c Loading commit data...
column.c Loading commit data...
commit-tree.c Loading commit data...
commit.c Loading commit data...
config.c Loading commit data...
count-objects.c Loading commit data...
credential.c Loading commit data...
describe.c Loading commit data...
diff-files.c Loading commit data...
diff-index.c Loading commit data...
diff-tree.c Loading commit data...
diff.c Loading commit data...
difftool.c Loading commit data...
fast-export.c Loading commit data...
fetch-pack.c Loading commit data...
fetch.c Loading commit data...
fmt-merge-msg.c Loading commit data...
for-each-ref.c Loading commit data...
fsck.c Loading commit data...
gc.c Loading commit data...
get-tar-commit-id.c Loading commit data...
grep.c Loading commit data...
hash-object.c Loading commit data...
help.c Loading commit data...
index-pack.c Loading commit data...
init-db.c Loading commit data...
interpret-trailers.c Loading commit data...
log.c Loading commit data...
ls-files.c Loading commit data...
ls-remote.c Loading commit data...
ls-tree.c Loading commit data...
mailinfo.c Loading commit data...
mailsplit.c Loading commit data...
merge-base.c Loading commit data...
merge-file.c Loading commit data...
merge-index.c Loading commit data...
merge-ours.c Loading commit data...
merge-recursive.c Loading commit data...
merge-tree.c Loading commit data...
merge.c Loading commit data...
mktag.c Loading commit data...
mktree.c Loading commit data...
mv.c Loading commit data...
name-rev.c Loading commit data...
notes.c Loading commit data...
pack-objects.c Loading commit data...
pack-redundant.c Loading commit data...
pack-refs.c Loading commit data...
patch-id.c Loading commit data...
prune-packed.c Loading commit data...
prune.c Loading commit data...
pull.c Loading commit data...
push.c Loading commit data...
read-tree.c Loading commit data...
rebase--helper.c Loading commit data...
receive-pack.c Loading commit data...
reflog.c Loading commit data...
remote-ext.c Loading commit data...
remote-fd.c Loading commit data...
remote.c Loading commit data...
repack.c Loading commit data...
replace.c Loading commit data...
rerere.c Loading commit data...
reset.c Loading commit data...
rev-list.c Loading commit data...
rev-parse.c Loading commit data...
revert.c Loading commit data...
rm.c Loading commit data...
send-pack.c Loading commit data...
shortlog.c Loading commit data...
show-branch.c Loading commit data...
show-ref.c Loading commit data...
stripspace.c Loading commit data...
submodule--helper.c Loading commit data...
symbolic-ref.c Loading commit data...
tag.c Loading commit data...
unpack-file.c Loading commit data...
unpack-objects.c Loading commit data...
update-index.c Loading commit data...
update-ref.c Loading commit data...
update-server-info.c Loading commit data...
upload-archive.c Loading commit data...
var.c Loading commit data...
verify-commit.c Loading commit data...
verify-pack.c Loading commit data...
verify-tag.c Loading commit data...
worktree.c Loading commit data...
write-tree.c Loading commit data...