summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb1be74)
raw | patch | inline | side by side (parent: cb1be74)
author | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 7 Sep 2006 20:32:47 +0000 (22:32 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Thu, 7 Sep 2006 20:32:47 +0000 (22:32 +0200) |
tig.c | patch | blob | history |
index 1ad19946bb6b2e32cfc369813d9047a08e2b1188..08cdd4163443ff9bb7f46eab652c57d5954f68a9 100644 (file)
--- a/tig.c
+++ b/tig.c
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;