Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
submodule: use git rev-parse -q
author
Miklos Vajna
<vmiklos@frugalware.org>
Wed, 3 Dec 2008 13:26:52 +0000
(14:26 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 3 Dec 2008 22:27:18 +0000
(14:27 -0800)
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
5a92d19
)
diff --git
a/git-submodule.sh
b/git-submodule.sh
index 220d94ec0c53c9d6c4535d1e50f5d1cb9dc99689..2f47e065fe8b7ca856f4527d6a507a28f1b2a06b 100755
(executable)
--- a/
git-submodule.sh
+++ b/
git-submodule.sh
@@
-413,7
+413,7
@@
cmd_summary() {
test $summary_limit = 0 && return
test $summary_limit = 0 && return
- if rev=$(git rev-parse -
-verify "$1^0" 2>/dev/null
)
+ if rev=$(git rev-parse -
q --verify "$1^0"
)
then
head=$rev
shift
then
head=$rev
shift
@@
-464,11
+464,11
@@
cmd_summary() {
missing_dst=
test $mod_src = 160000 &&
missing_dst=
test $mod_src = 160000 &&
- ! GIT_DIR="$name/.git" git-rev-parse -
-verify $sha1_src^0 >/dev/null 2>&1
&&
+ ! GIT_DIR="$name/.git" git-rev-parse -
q --verify $sha1_src^0 >/dev/null
&&
missing_src=t
test $mod_dst = 160000 &&
missing_src=t
test $mod_dst = 160000 &&
- ! GIT_DIR="$name/.git" git-rev-parse -
-verify $sha1_dst^0 >/dev/null 2>&1
&&
+ ! GIT_DIR="$name/.git" git-rev-parse -
q --verify $sha1_dst^0 >/dev/null
&&
missing_dst=t
total_commits=
missing_dst=t
total_commits=