summaryrefslogtreecommitdiff
path: root/Documentation/git-fsck.txt
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-07-03 00:33:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-07-03 04:34:12 (GMT)
commit68f6c019fd8d49fbaa72f1aeeb21eb921b6a16bf (patch)
treee02141a138971b76a65a99f4d7d283600bf34c0a /Documentation/git-fsck.txt
parent1a6f3999998a22325ff820bf8c840e3baf3d2281 (diff)
downloadgit-68f6c019fd8d49fbaa72f1aeeb21eb921b6a16bf.zip
git-68f6c019fd8d49fbaa72f1aeeb21eb921b6a16bf.tar.gz
git-68f6c019fd8d49fbaa72f1aeeb21eb921b6a16bf.tar.bz2
git-fsck: add --lost-found option
With this option, dangling objects are not only reported, but also written to .git/lost-found/commit/ or .git/lost-found/other/. This option implies '--full' and '--no-reflogs'. 'git fsck --lost-found' is meant as a replacement for git-lost-found. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-fsck.txt')
-rw-r--r--Documentation/git-fsck.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/git-fsck.txt b/Documentation/git-fsck.txt
index 234c22f..08512e0 100644
--- a/Documentation/git-fsck.txt
+++ b/Documentation/git-fsck.txt
@@ -10,7 +10,7 @@ SYNOPSIS
--------
[verse]
'git-fsck' [--tags] [--root] [--unreachable] [--cache] [--no-reflogs]
- [--full] [--strict] [--verbose] [<object>*]
+ [--full] [--strict] [--verbose] [--lost-found] [<object>*]
DESCRIPTION
-----------
@@ -64,6 +64,10 @@ index file and all SHA1 references in .git/refs/* as heads.
--verbose::
Be chatty.
+--lost-found::
+ Write dangling refs into .git/commit/ or .git/other/, depending
+ on type.
+
It tests SHA1 and general object sanity, and it does full tracking of
the resulting reachability and everything else. It prints out any
corruption it finds (missing or bad objects), and if you use the