]> git.ipfire.org Git - thirdparty/git.git/commit
add: pass in repo variable instead of global the_repository
authorJohn Cai <johncai86@gmail.com>
Fri, 13 Sep 2024 21:16:17 +0000 (21:16 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Sep 2024 21:33:30 +0000 (14:33 -0700)
commit836474560b653271a819c4de9fa60cb097df2067
tree4d4476fdb1bf1d0a83515f4048042ed2454e5270
parent49d2434664b5b4cb44460d16578039fcd198c40a
add: pass in repo variable instead of global the_repository

With the repository variable available in the builtin function as an
argument, pass this down into helper functions instead of using the
global the_repository.

Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/add.c
builtin/commit.c
commit.h