chiark
/
gitweb
/
~mdw
/
tig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9a48919
)
Fix git-describe reference adding when there are no tags and thus no output
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
|
blame
|
history
diff --git
a/tig.c
b/tig.c
index 44fcb1b4f7a69db6054760c8fcc08dd47a410060..bcff66f5caa73da750367e27f307b0e08d605fe7 100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-2333,10
+2333,14
@@
add_pager_refs(struct view *view, struct line *line)
if (!is_tag && view == VIEW(REQ_VIEW_DIFF)) {
try_add_describe_ref:
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 (!add_describe_ref(buf, &bufpos, commit_id, sep))
return;
}
+ if (bufpos == 0)
+ return;
+
if (!realloc_lines(view, view->line_size + 1))
return;
if (!realloc_lines(view, view->line_size + 1))
return;