Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sed -e '/RE/r rfile/' needs space in 'r rfile'
[gitweb.git]
/
git-lost-found.sh
diff --git
a/git-lost-found.sh
b/git-lost-found.sh
index 9dd7430018f4bfb76c29e77e7fb9365acaa3bd9b..ba6d587f3199e5847dc942810ea85b2dbec656b9 100755
(executable)
--- a/
git-lost-found.sh
+++ b/
git-lost-found.sh
@@
-1,7
+1,14
@@
#!/bin/sh
+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