diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-11-19 08:50:50 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-19 17:41:03 -0800 |
| commit | 7c188a9e45405ff911b81a5dd9029f4e91fb338e (patch) | |
| tree | 99b48d19b717b39a7b1c73da37eaf2ffc3502a3c /setup.h | |
| parent | 831e02340b9de46c9ea0a1bbce3894f390f5a45e (diff) | |
| download | git-7c188a9e45405ff911b81a5dd9029f4e91fb338e.tar.xz | |
setup: convert `set_git_dir()` to have file scope
We don't have any external callers of `set_git_dir()` anymore now that
`enter_repo()` has been moved into "setup.c". Remove the declaration and
mark the function as static.
Note that this change requires us to move the implementation around so
that we can avoid adding any new forward declarations.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'setup.h')
| -rw-r--r-- | setup.h | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -94,7 +94,6 @@ static inline int discover_git_directory(struct strbuf *commondir, return 0; } -void set_git_dir(const char *path, int make_realpath); void set_git_work_tree(const char *tree); /* Flags that can be passed to `enter_repo()`. */ |
