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

[PATCH - maint review] describe: do not silently ignore indescribable commits

From
Junio C Hamano <junkio@cox.net>
Date
Jan 12, 2006, 00:05 UTC
Message-ID
<7vu0cajopa.fsf@assigned-by-dhcp.cox.net>

We silently ignored indescribable commits without complaining. Complain and die instead.

Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 * For 1.1.2
 describe.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
8c23b6fae2e5cd8475885b015f0bb992d19921db
diff --git a/describe.c b/describe.c
index a0180f5..5548a16 100644
--- a/describe.c
+++ b/describe.c
@@ -124,10 +124,11 @@ static void describe(struct commit *cmit
 		if (n) {
 			printf("%s-g%s\n", n->path,
 			       find_unique_abbrev(cmit->object.sha1, abbrev));
-			break;
+			clear_commit_marks(cmit, SEEN);
+			return;
 		}
 	}
-	clear_commit_marks(cmit, SEEN);
+	die("cannot describe '%s'", sha1_to_hex(cmit->object.sha1));
 }
 
 int main(int argc, char **argv)
-- 
1.1.1-g8ecb
Message 1 of 1 in “describe: do not silently ignore indescribable commits”
  1. describe: do not silently ignore indescribable commitsJunio C Hamano, Jan 12, 2006

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.