提交 5c1e235f 编写于 作者: A Andy Parkins 提交者: Junio C Hamano

Remove uneccessarily similar printf() from print_ref_list() in builtin-branch

Signed-off-by: NAndy Parkins <andyparkins@gmail.com>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 7854e526
......@@ -103,6 +103,7 @@ static int ref_cmp(const void *r1, const void *r2)
static void print_ref_list(int remote_only)
{
int i;
char c;
if (remote_only)
for_each_remote_ref(append_ref, NULL);
......@@ -112,10 +113,11 @@ static void print_ref_list(int remote_only)
qsort(ref_list, ref_index, sizeof(char *), ref_cmp);
for (i = 0; i < ref_index; i++) {
c = ' ';
if (!strcmp(ref_list[i], head))
printf("* %s\n", ref_list[i]);
else
printf(" %s\n", ref_list[i]);
c = '*';
printf("%c %s\n", c, ref_list[i]);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册