summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9a48919)
raw | patch | inline | side by side (parent: 9a48919)
author | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 11 Sep 2006 04:04:02 +0000 (06:04 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Mon, 11 Sep 2006 04:04:02 +0000 (06:04 +0200) |
tig.c | patch | blob | history |
index 44fcb1b4f7a69db6054760c8fcc08dd47a410060..bcff66f5caa73da750367e27f307b0e08d605fe7 100644 (file)
--- a/tig.c
+++ b/tig.c
if (!is_tag && view == VIEW(REQ_VIEW_DIFF)) {
try_add_describe_ref:
+ /* Add <tag>-g<commit_id> "fake" reference. */
if (!add_describe_ref(buf, &bufpos, commit_id, sep))
return;
}
+ if (bufpos == 0)
+ return;
+
if (!realloc_lines(view, view->line_size + 1))
return;