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

[PATCH 2/5] Include annotated tags in fast-import crash reports

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 14, 2008, 06:34 UTC
Message-ID
<20080214063436.GB30678@spearce.org>

If annotated tags were created they exist in a different namespace within the fast-import process' internal memory tables so we did not export them in the inactive branch table. Now they are written out after the branches, in the order that they were defined by the frontend process.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 fast-import.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/fast-import.c b/fast-import.c
index 9b71ccc..8ef607f 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -430,6 +430,19 @@ static void write_crash_report(const char *err)
 			write_branch_report(rpt, b);
 	}
 
+	if (first_tag) {
+		struct tag *tg;
+		fputc('\n', rpt);
+		fputs("Annotated Tags\n", rpt);
+		fputs("--------------\n", rpt);
+		for (tg = first_tag; tg; tg = tg->next_tag) {
+			fputs(sha1_to_hex(tg->sha1), rpt);
+			fputc(' ', rpt);
+			fputs(tg->name, rpt);
+			fputc('\n', rpt);
+		}
+	}
+
 	fputc('\n', rpt);
 	fputs("-------------------\n", rpt);
 	fputs("END OF CRASH REPORT\n", rpt);
-- 
1.5.4.1.1309.g833c2
Message 1 of 1 in “Include annotated tags in fast-import crash reports”
  1. 2/5 Include annotated tags in fast-import crash reportsShawn O. Pearce, Feb 14, 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.