@matheusbsbs / matheus-bagliano / commits / fbc63ea694
Fork 0

Include annotated tags in fast-import crash reports

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> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Shawn O. Pearce committed Feb 14, 2008 at 01:34 UTC fbc63ea69487e688a1293227b976b378834550a1
1 file changed +13
fast-import.c
+13
@@ -430,6 +430,19 @@ static void write_crash_report(const char *err)
430 write_branch_report(rpt, b);
431 }
432
433 + if (first_tag) {
434 + struct tag *tg;
435 + fputc('\n', rpt);
436 + fputs("Annotated Tags\n", rpt);
437 + fputs("--------------\n", rpt);
438 + for (tg = first_tag; tg; tg = tg->next_tag) {
439 + fputs(sha1_to_hex(tg->sha1), rpt);
440 + fputc(' ', rpt);
441 + fputs(tg->name, rpt);
442 + fputc('\n', rpt);
443 + }
444 + }
445 +
446 fputc('\n', rpt);
447 fputs("-------------------\n", rpt);
448 fputs("END OF CRASH REPORT\n", rpt);