mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
Remove uneccessarily similar printf() from print_ref_list() in builtin-branch
Signed-off-by: Andy Parkins <andyparkins@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
7854e526ff
commit
5c1e235f0f
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue