Skip to content

Commit

Permalink
Rename .git/lost+found to .git/lost-found.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Nov 12, 2005
1 parent 04e7ca1 commit 0720365
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Documentation/git-lost+found.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ SYNOPSIS
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
Expand All @@ -40,7 +40,7 @@ Also you can use gitk to browse how they relate to each other
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
Expand Down
2 changes: 1 addition & 1 deletion git-lost+found.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

. 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 |
Expand Down

0 comments on commit 0720365

Please sign in to comment.