Code

add_pager_refs: rename local line data pointer to commit_id
authorJonas Fonseca <fonseca@diku.dk>
Thu, 7 Sep 2006 20:32:47 +0000 (22:32 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Thu, 7 Sep 2006 20:32:47 +0000 (22:32 +0200)
tig.c

diff --git a/tig.c b/tig.c
index 1ad19946bb6b2e32cfc369813d9047a08e2b1188..08cdd4163443ff9bb7f46eab652c57d5954f68a9 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -2071,14 +2071,14 @@ static void
 add_pager_refs(struct view *view, struct line *line)
 {
        char buf[1024];
-       char *data = line->data;
+       char *commit_id = line->data + STRING_SIZE("commit ");
        struct ref **refs;
        int bufpos = 0, refpos = 0;
        const char *sep = "Refs: ";
 
        assert(line->type == LINE_COMMIT);
 
-       refs = get_refs(data + STRING_SIZE("commit "));
+       refs = get_refs(commit_id);
        if (!refs)
                return;