]> git.ipfire.org Git - thirdparty/git.git/commit
repack, prune: drop GIT_REF_PARANOIA settings
authorJeff King <peff@peff.net>
Fri, 24 Sep 2021 18:46:37 +0000 (14:46 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Sep 2021 19:36:45 +0000 (12:36 -0700)
commit5d1f5b8cd4bec8fbb405e32b1208955c93240f17
tree920584cfaab45e9cd79486b3c22f647406deca30
parent968f12fdac2601086dea7e10db17f1c50d704a07
repack, prune: drop GIT_REF_PARANOIA settings

Now that GIT_REF_PARANOIA is the default, we don't need to selectively
enable it for destructive operations. In fact, it's harmful to do so,
because it overrides any GIT_REF_PARANOIA=0 setting that the user may
have provided (because they're trying to work around some corruption).

With these uses gone, we can further clean up the ref_paranoia global,
and make it a static variable inside the refs code.

Signed-off-by: Jeff King <peff@peff.net>
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/prune.c
builtin/repack.c
cache.h
environment.c
refs.c