]> git.ipfire.org Git - thirdparty/git.git/commit
merge-ours: drop USE_THE_REPOSITORY_VARIABLE
authorSam Bostock <sam@sambostock.ca>
Fri, 6 Feb 2026 19:16:22 +0000 (19:16 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Feb 2026 19:45:31 +0000 (11:45 -0800)
commitba447e9cec47ca5b1cc8cfeae8ca90bc962c54fa
tree17b8cc1402cff42bfd50f030250e5baa5510b1c1
parent67ad42147a7acc2af6074753ebd03d904476118f
merge-ours: drop USE_THE_REPOSITORY_VARIABLE

The merge-ours built-in uses the `the_repository` global to access
the repository. The project is moving away from this global in favor
of the `repo` parameter that is passed to each built-in command.
Since merge-ours is registered with RUN_SETUP, `repo` is guaranteed
to be non-NULL and can be used directly.

Drop the USE_THE_REPOSITORY_VARIABLE macro and use `repo` throughout.

While at it, remove a stray double blank line between the #include
block and the usage string.

Signed-off-by: Sam Bostock <sam@sambostock.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/merge-ours.c