git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 5/5] submodule: use git rev-parse -q

From
Miklos Vajna <vmiklos@frugalware.org>
Date
Dec 3, 2008, 13:26 UTC
Message-ID
<c3a20382adecc78a12c9cf1bff9beb102d323b5e.1228310570.git.vmiklos@frugalware.org>
In-Reply-To
<b67238b67501272485cc659c11a836f4f96e0d81.1228310570.git.vmiklos@frugalware.org>
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
---
 git-submodule.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/git-submodule.sh b/git-submodule.sh
index 220d94e..2f47e06 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -413,7 +413,7 @@ cmd_summary() {
 
 	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
@@ -464,11 +464,11 @@ cmd_summary() {
 		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 &&
-		! 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=
-- 
1.6.0.4
Previous: Miklos Vajna
Message 6 of 6 in “More "use rev-parse -q" patches”
  1. 0/5 More "use rev-parse -q" patchesMiklos Vajna, Dec 3, 2008
  2. 1/5 filter-branch: use git rev-parse -qMiklos Vajna, Dec 3, 2008
  3. 2/5 lost-found: use git rev-parse -qMiklos Vajna, Dec 3, 2008
  4. 3/5 pull: use git rev-parse -qMiklos Vajna, Dec 3, 2008
  5. 4/5 rebase: use git rev-parse -qMiklos Vajna, Dec 3, 2008
  6. 5/5 submodule: use git rev-parse -qMiklos Vajna, Dec 3, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.