summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-03-28 16:33:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-28 16:33:06 (GMT)
commit9f389aa4920f147a6314719741b47074b2e4b727 (patch)
treeedf7abf348e4b2ba4fe128801346357c512ce173 /Documentation
parentb37996e251872891f71b833c425acd05cf263547 (diff)
parentea56c4e02fc1d5ce6a6b5083c284e32ffc6367e6 (diff)
downloadgit-9f389aa4920f147a6314719741b47074b2e4b727.zip
git-9f389aa4920f147a6314719741b47074b2e4b727.tar.gz
git-9f389aa4920f147a6314719741b47074b2e4b727.tar.bz2
Merge branch 'jk/prune-with-corrupt-refs' into maint
"git prune" used to largely ignore broken refs when deciding which objects are still being used, which could spread an existing small damage and make it a larger one. * jk/prune-with-corrupt-refs: refs.c: drop curate_packed_refs repack: turn on "ref paranoia" when doing a destructive repack prune: turn on ref_paranoia flag refs: introduce a "ref paranoia" flag t5312: test object deletion code paths in a corrupted repository
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt
index 9c75617..a2596dc 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -1027,6 +1027,17 @@ GIT_ICASE_PATHSPECS::
variable when it is invoked as the top level command by the
end user, to be recorded in the body of the reflog.
+`GIT_REF_PARANOIA`::
+ If set to `1`, include broken or badly named refs when iterating
+ over lists of refs. In a normal, non-corrupted repository, this
+ does nothing. However, enabling it may help git to detect and
+ abort some operations in the presence of broken refs. Git sets
+ this variable automatically when performing destructive
+ operations like linkgit:git-prune[1]. You should not need to set
+ it yourself unless you want to be paranoid about making sure
+ an operation has touched every ref (e.g., because you are
+ cloning a repository to make a backup).
+
Discussion[[Discussion]]
------------------------