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

[PATCH 2/5] lost-found: use git rev-parse -q

From
Miklos Vajna <vmiklos@frugalware.org>
Date
Dec 3, 2008, 13:26 UTC
Message-ID
<73193271279140eda04ec46097936e64f3c526d6.1228310570.git.vmiklos@frugalware.org>
In-Reply-To
<4858dc4d5d92276fa96a8fb45b02adaae57dcf26.1228310570.git.vmiklos@frugalware.org>
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
---
 git-lost-found.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-lost-found.sh b/git-lost-found.sh
index 9cedaf8..0b3e8c7 100755
--- 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"
-- 
1.6.0.4
Previous: Miklos VajnaNext: Miklos Vajna
Message 3 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.