{"thread":{"id":"12096","subject":"[PATCH 2/5] Include annotated tags in fast-import crash reports","startedAt":"2008-02-14T06:34:36Z","lastAt":"2008-02-14T06:34:36Z","messageCount":1,"participants":["Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":5},"messages":[{"id":"68718","messageId":"20080214063436.GB30678@spearce.org","threadId":"12096","inReplyTo":null,"subject":"[PATCH 2/5] Include annotated tags in fast-import crash reports","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-02-14T06:34:36Z","receivedAt":"2008-02-14T06:34:36Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"If annotated tags were created they exist in a different namespace\nwithin the fast-import process' internal memory tables so we did\nnot export them in the inactive branch table.  Now they are written\nout after the branches, in the order that they were defined by the\nfrontend process.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n fast-import.c |   13 +++++++++++++\n 1 files changed, 13 insertions(+), 0 deletions(-)\n\ndiff --git a/fast-import.c b/fast-import.c\nindex 9b71ccc..8ef607f 100644\n--- a/fast-import.c\n+++ b/fast-import.c\n@@ -430,6 +430,19 @@ static void write_crash_report(const char *err)\n \t\t\twrite_branch_report(rpt, b);\n \t}\n \n+\tif (first_tag) {\n+\t\tstruct tag *tg;\n+\t\tfputc('\\n', rpt);\n+\t\tfputs(\"Annotated Tags\\n\", rpt);\n+\t\tfputs(\"--------------\\n\", rpt);\n+\t\tfor (tg = first_tag; tg; tg = tg->next_tag) {\n+\t\t\tfputs(sha1_to_hex(tg->sha1), rpt);\n+\t\t\tfputc(' ', rpt);\n+\t\t\tfputs(tg->name, rpt);\n+\t\t\tfputc('\\n', rpt);\n+\t\t}\n+\t}\n+\n \tfputc('\\n', rpt);\n \tfputs(\"-------------------\\n\", rpt);\n \tfputs(\"END OF CRASH REPORT\\n\", rpt);\n-- \n1.5.4.1.1309.g833c2\n"}]}