summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a50b5b0)
raw | patch | inline | side by side (parent: a50b5b0)
author | Jonas Fonseca <fonseca@diku.dk> | |
Fri, 20 Feb 2009 22:39:29 +0000 (23:39 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Fri, 20 Feb 2009 23:16:56 +0000 (00:16 +0100) |
tig.c | patch | blob | history |
index 81a97b6942c6c17b2418b4fd26bc881f71c18bad..9349f697f5b72b7b112ba6c6e28296862ea77f95 100644 (file)
--- a/tig.c
+++ b/tig.c
size_t i = 0;
do {
+ struct ref *ref = commit->refs[i];
enum line_type type;
- if (commit->refs[i]->head)
+ if (ref->head)
type = LINE_MAIN_HEAD;
- else if (commit->refs[i]->ltag)
+ else if (ref->ltag)
type = LINE_MAIN_LOCAL_TAG;
- else if (commit->refs[i]->tag)
+ else if (ref->tag)
type = LINE_MAIN_TAG;
- else if (commit->refs[i]->tracked)
+ else if (ref->tracked)
type = LINE_MAIN_TRACKED;
- else if (commit->refs[i]->remote)
+ else if (ref->remote)
type = LINE_MAIN_REMOTE;
else
type = LINE_MAIN_REF;
if (draw_text(view, type, "[", TRUE) ||
- draw_text(view, type, commit->refs[i]->name, TRUE) ||
+ draw_text(view, type, ref->name, TRUE) ||
draw_text(view, type, "]", TRUE))
return TRUE;