Skip to content

Commit fbc63ea

Browse files
spearcegitster
authored andcommitted
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>
1 parent 969702a commit fbc63ea

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

fast-import.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,19 @@ static void write_crash_report(const char *err)
430430
write_branch_report(rpt, b);
431431
}
432432

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+
433446
fputc('\n', rpt);
434447
fputs("-------------------\n", rpt);
435448
fputs("END OF CRASH REPORT\n", rpt);

0 commit comments

Comments
 (0)