Skip to content

Commit

Permalink
Include annotated tags in fast-import crash reports
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn O. Pearce authored and Junio C Hamano committed Feb 16, 2008
1 parent 969702a commit fbc63ea
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions fast-import.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fbc63ea

Please sign in to comment.