summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7854e52)
raw | patch | inline | side by side (parent: 7854e52)
author | Andy Parkins <andyparkins@gmail.com> | |
Thu, 2 Nov 2006 11:10:52 +0000 (11:10 +0000) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 3 Nov 2006 01:39:58 +0000 (17:39 -0800) |
Signed-off-by: Andy Parkins <andyparkins@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-branch.c | patch | blob | history |
diff --git a/builtin-branch.c b/builtin-branch.c
index e028a5390fae60674eb39b2fcf2cea9943bff920..368b68ec91f3d72d1f5e1d1dea503334207f864d 100644 (file)
--- a/builtin-branch.c
+++ b/builtin-branch.c
static void print_ref_list(int remote_only)
{
int i;
+ char c;
if (remote_only)
for_each_remote_ref(append_ref, NULL);
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]);
}
}