]> git.ipfire.org Git - thirdparty/git.git/blobdiff - fast-import.c
Include annotated tags in fast-import crash reports
[thirdparty/git.git] / fast-import.c
index 9b71ccc479352c6a37b9b9652f1cb1793fdbb01b..8ef607f7db45d6c3dbf35cdbd1adb023ad99766c 100644 (file)
@@ -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);