]> Kevux Git Server - rit/commit
setup: drop `setup_git_env()`
authorPatrick Steinhardt <ps@pks.im>
Thu, 4 Jun 2026 07:46:26 +0000 (09:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Jun 2026 12:49:38 +0000 (21:49 +0900)
commit452ad8db6d9155d6c7305d6045d29c49a7cc9c7c
tree32f4bbbe1d61795208317e01502e6c0a545606ca
parent027e3b3d38fa7989b17bdf60501d5f1617141688
setup: drop `setup_git_env()`

The `setup_git_env()` function is a trivial wrapper around
`setup_git_env_internal()` and has a single call site only. Drop the
function.

While at it, drop stale documentation in "environment.h" that points to
this function, even though it hasn't been exposed to callers outside of
"setup.c" since 43ad1047a9 (setup: stop using `the_repository` in
`setup_git_env()`, 2026-03-27) anymore.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
environment.h
refs.c
setup.c