]> git.ipfire.org Git - thirdparty/git.git/commit
cocci: convert parse_tree functions to repo_ variants
authorRené Scharfe <l.s.r@web.de>
Fri, 9 Jan 2026 21:30:21 +0000 (22:30 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 10 Jan 2026 02:36:18 +0000 (18:36 -0800)
commitec7a16b14551fed736ecfe0a9d4f6d6f9e03be79
tree879e793cbcd59b52d7e3527b6e1db035ef7977d0
parenta8a50f29aeab6cf3cd848caaa8229ab26d542b80
cocci: convert parse_tree functions to repo_ variants

Add and apply a semantic patch to convert calls to parse_tree() and
friends to the corresponding variant that takes a repository argument,
to allow the functions that implicitly use the_repository to be retired
once all potential in-flight topics are settled and converted as well.

The changes in .c files were generated by Coccinelle, but I fixed a
whitespace bug it would have introduced to builtin/commit.c.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
27 files changed:
archive.c
builtin/am.c
builtin/checkout.c
builtin/clone.c
builtin/commit.c
builtin/diff-tree.c
builtin/ls-tree.c
builtin/merge-tree.c
builtin/merge.c
builtin/read-tree.c
builtin/reset.c
builtin/stash.c
cache-tree.c
contrib/coccinelle/the_repository.cocci
diff-lib.c
fsck.c
http-push.c
list-objects.c
merge-ort.c
merge.c
read-cache.c
reset.c
revision.c
sequencer.c
t/helper/test-cache-tree.c
t/helper/test-match-trees.c
walker.c