summaryrefslogtreecommitdiffstats
path: root/path.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-05-07 06:52:51 +0200
committerJunio C Hamano <gitster@pobox.com>2024-05-07 07:50:48 +0200
commit0c6bd2b81d1e18dfa1e143c354c554cca34b3685 (patch)
treed8f8a497b4f516d8a9310190e65a8691ed8586c7 /path.h
parentpath: harden validation of HEAD with non-standard hashes (diff)
downloadgit-0c6bd2b81d1e18dfa1e143c354c554cca34b3685.tar.xz
git-0c6bd2b81d1e18dfa1e143c354c554cca34b3685.zip
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>
Diffstat (limited to 'path.h')
-rw-r--r--path.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/path.h b/path.h
index ea96487b29..c3bc8617bd 100644
--- a/path.h
+++ b/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);