]> git.99rst.org Git - git.git/commit
path: move `validate_headref()` to its only user
authorPatrick Steinhardt <redacted>
Tue, 7 May 2024 04:52:51 +0000 (06:52 +0200)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
path.c
path.h
setup.c
git clone https://git.99rst.org/PROJECT