mirror of
https://github.com/git/git.git
synced 2026-08-05 07:31:02 +00:00
setup: mark set_git_work_tree() as file-local
In the preceding commit we have removed the last callers of `set_git_work_tree()` that is located outside of "setup.c". Remove its declaration and mark the function as file-local. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
293b7850a7
commit
4df38c632f
2
setup.c
2
setup.c
@@ -1904,7 +1904,7 @@ const char *enter_repo(struct repository *repo, const char *path, unsigned flags
|
||||
* primarily to support git-clone to work in a new repository it just
|
||||
* created, and is not meant to flip between different work trees.
|
||||
*/
|
||||
void set_git_work_tree(struct repository *repo, const char *new_work_tree)
|
||||
static void set_git_work_tree(struct repository *repo, const char *new_work_tree)
|
||||
{
|
||||
if (repo->worktree_initialized) {
|
||||
struct strbuf realpath = STRBUF_INIT;
|
||||
|
||||
Reference in New Issue
Block a user