path: move validate_headref()
to its only user
While `validate_headref()` is only called from `is_git_directory()` in "setup.c", it is currently implemented in "path.c". Move it over such that it becomes clear that it is only really used during setup in order to discover repositories. 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
a0851cece5
commit
0c6bd2b81d
1
path.h
1
path.h
@ -173,7 +173,6 @@ const char *git_path_fetch_head(struct repository *r);
|
||||
const char *git_path_shallow(struct repository *r);
|
||||
|
||||
int ends_with_path_components(const char *path, const char *components);
|
||||
int validate_headref(const char *ref);
|
||||
|
||||
int calc_shared_perm(int mode);
|
||||
int adjust_shared_perm(const char *path);
|
||||
|
Reference in New Issue
Block a user