diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2008-02-14 01:34:36 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-16 00:47:07 -0800 |
commit | fbc63ea69487e688a1293227b976b378834550a1 (patch) | |
tree | 6c0050a1e87f6d09bb38b4516f9176f7d42b6f4a | |
parent | 969702a9575ada3bcc510ce2e44cb00b8325ecaa (diff) | |
download | git-fbc63ea69487e688a1293227b976b378834550a1.tar.gz git-fbc63ea69487e688a1293227b976b378834550a1.tar.xz |
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>
-rw-r--r-- | fast-import.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fast-import.c b/fast-import.c index 9b71ccc47..8ef607f7d 100644 --- a/fast-import.c +++ b/fast-import.c @@ -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); |