summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-12 13:29:40 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-12 10:15:40 -0700
commitedc2c92624a5389836789579ff11417ca1c61ea0 (patch)
tree9597cdfadbcde959b6d119894a1b08d89ad6e690 /commit.c
parent14c90ac0885c2fd1668d64084975a9ab9ef86318 (diff)
environment: make `get_git_work_tree()` accept a repository
The `get_git_work_tree()` function retrieves the path of the work tree of `the_repository`. Make it accept a `struct repository` such that it can work on arbitrary repositories and make it part of the repository subsystem. This reduces our reliance on `the_repository` and clarifies scope. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions