diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-07-03 01:33:54 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-07-02 21:34:12 -0700 |
commit | 68f6c019fd8d49fbaa72f1aeeb21eb921b6a16bf (patch) | |
tree | e02141a138971b76a65a99f4d7d283600bf34c0a /Documentation | |
parent | Merge branch 'maint' (diff) | |
download | tgif-68f6c019fd8d49fbaa72f1aeeb21eb921b6a16bf.tar.xz |
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')
-rw-r--r-- | Documentation/git-fsck.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/git-fsck.txt b/Documentation/git-fsck.txt index 234c22f57f..08512e0b8f 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 |