aboutsummaryrefslogtreecommitdiff
path: root/setup.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-11-19 08:50:50 +0100
committerJunio C Hamano <gitster@pobox.com>2025-11-19 17:41:03 -0800
commit7c188a9e45405ff911b81a5dd9029f4e91fb338e (patch)
tree99b48d19b717b39a7b1c73da37eaf2ffc3502a3c /setup.h
parent831e02340b9de46c9ea0a1bbce3894f390f5a45e (diff)
downloadgit-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.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/setup.h b/setup.h
index bfea199bcd..d55dcc6608 100644
--- a/setup.h
+++ b/setup.h
@@ -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()`. */