mirror of
https://github.com/git/git.git
synced 2026-06-30 19:58:12 +00:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
027e3b3d38
commit
452ad8db6d
3
refs.c
3
refs.c
@@ -126,7 +126,8 @@ struct ref_namespace_info ref_namespace[] = {
|
||||
* points to the content of another. Unlike the other
|
||||
* ref namespaces, this one can be changed by the
|
||||
* GIT_REPLACE_REF_BASE environment variable. This
|
||||
* .namespace value will be overwritten in setup_git_env().
|
||||
* .namespace value will be overwritten during repository
|
||||
* setup.
|
||||
*/
|
||||
.ref = "refs/replace/",
|
||||
.decoration = DECORATION_GRAFTED,
|
||||
|
||||
Reference in New Issue
Block a user