]> git.ipfire.org Git - thirdparty/git.git/commit
path: move `validate_headref()` to its only user
authorPatrick Steinhardt <ps@pks.im>
Tue, 7 May 2024 04:52:51 +0000 (06:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 May 2024 05:50:48 +0000 (22:50 -0700)
commit0c6bd2b81d1e18dfa1e143c354c554cca34b3685
treed8f8a497b4f516d8a9310190e65a8691ed8586c7
parenta0851cece542be9fabf00d6145860562db450205
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>
path.c
path.h
setup.c