just use Name as first column, thanks quinq for the suggestion
1 files changed, 2 insertions(+), 3 deletions(-) | |||
---|---|---|---|
M | stagit.c | +2 | -3 |
1@@ -769,7 +769,6 @@ writerefs(FILE *fp)
2 git_reference_iterator *it = NULL;
3 git_reference **refs = NULL;
4 size_t count, i, j, refcount = 0;
5- const char *cols[] = { "Branch", "Tag" }; /* first column title */
6 const char *titles[] = { "Branches", "Tags" };
7 const char *ids[] = { "branches", "tags" };
8 const char *name;
9@@ -816,9 +815,9 @@ writerefs(FILE *fp)
10
11 /* print header if it has an entry (first). */
12 if (++count == 1) {
13- fprintf(fp, "<h2>%s</h2><table id=\"%s\"><thead>\n<tr><td>%s</td>"
14+ fprintf(fp, "<h2>%s</h2><table id=\"%s\"><thead>\n<tr><td>Name</td>"
15 "<td>Last commit date</td><td>Author</td>\n</tr>\n</thead><tbody>\n",
16- titles[j], ids[j], cols[j]);
17+ titles[j], ids[j]);
18 }
19
20 relpath = "";