summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 04e7ca1)
raw | patch | inline | side by side (parent: 04e7ca1)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 11 Nov 2005 03:16:26 +0000 (19:16 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 12 Nov 2005 05:52:21 +0000 (21:52 -0800) |
Just to avoid confusion that scripts poorly written by somebody
else ;-) might mistake this as a mount point, or backup tools
ignoring the directory. The latter is probably not a big loss,
however, considering that this directory's contents are to be
used while fresh anyway.
Signed-off-by: Junio C Hamano <junkio@cox.net>
else ;-) might mistake this as a mount point, or backup tools
ignoring the directory. The latter is probably not a big loss,
however, considering that this directory's contents are to be
used while fresh anyway.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-lost+found.txt | patch | blob | history | |
git-lost+found.sh | patch | blob | history |
index 0cb8e3bbfe05997eaebdc977249c065ea1ff775b..660e90b109afa89cbdca5590b614a9f6cfdd64a7 100644 (file)
DESCRIPTION
-----------
Finds dangling commits and tags from the object database, and
-creates refs to them in .git/lost+found/ directory. Commits and
-tags that dereference to commits go to .git/lost+found/commit
-and others are stored in .git/lost+found/other directory.
+creates refs to them in .git/lost-found/ directory. Commits and
+tags that dereference to commits go to .git/lost-found/commit
+and others are stored in .git/lost-found/other directory.
OUTPUT
and existing (probably old) tags.
------------
-$ gitk $(cd .git/lost+found/commit && echo ??*)
+$ gitk $(cd .git/lost-found/commit && echo ??*)
------------
After making sure that it is the object you are looking for, you
diff --git a/git-lost+found.sh b/git-lost+found.sh
index b6b2616e45a8ac593123fb8ee468f5aa1bd96b2c..3892f52005d1e36676681806a87ef35dc0689f22 100755 (executable)
--- a/git-lost+found.sh
+++ b/git-lost+found.sh
. git-sh-setup || die "Not a git archive."
-laf="$GIT_DIR/lost+found"
+laf="$GIT_DIR/lost-found"
rm -fr "$laf" && mkdir -p "$laf/commit" "$laf/other" || exit
git fsck-objects |