Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
lost-found: use git rev-parse -q
author
Miklos Vajna
<vmiklos@frugalware.org>
Wed, 3 Dec 2008 13:26:49 +0000
(14:26 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 3 Dec 2008 22:27:17 +0000
(14:27 -0800)
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-lost-found.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
d69da76
)
diff --git
a/git-lost-found.sh
b/git-lost-found.sh
index 9cedaf80ceac1d4100adf3cfb152c76c7f945e4d..0b3e8c7a8652478a7dd3d629fde9240cac6d6e2b 100755
(executable)
--- a/
git-lost-found.sh
+++ b/
git-lost-found.sh
@@
-20,7
+20,7
@@
while read dangling type sha1
do
case "$dangling" in
dangling)
- if git rev-parse -
-verify "$sha1^0" >/dev/null 2
>/dev/null
+ if git rev-parse -
q --verify "$sha1^0"
>/dev/null
then
dir="$laf/commit"
git show-branch "$sha1"