summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 87358b7)
raw | patch | inline | side by side (parent: 87358b7)
author | freku045@student.liu.se <freku045@student.liu.se> | |
Tue, 13 Dec 2005 22:30:31 +0000 (23:30 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 14 Dec 2005 10:53:44 +0000 (02:53 -0800) |
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-lost-found.sh | patch | blob | history |
diff --git a/git-lost-found.sh b/git-lost-found.sh
index 2beec2aa635d2876482294a162923a1dfd1572f6..ba6d587f3199e5847dc942810ea85b2dbec656b9 100755 (executable)
--- a/git-lost-found.sh
+++ b/git-lost-found.sh
#!/bin/sh
-GIT_DIR=`git-rev-parse --git-dir` || exit $?
+USAGE=''
+SUBDIRECTORY_OK='Yes'
+. git-sh-setup
+
+if [ "$#" != "0" ]
+then
+ usage
+fi
+
laf="$GIT_DIR/lost-found"
rm -fr "$laf" && mkdir -p "$laf/commit" "$laf/other" || exit