Skip to content

Commit 9c93ff7

Browse files
Kaartic Sivaraamgitster
authored andcommitted
branch: quote branch/ref names to improve readability
Signed-off-by: Kaartic Sivaraam <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5266884 commit 9c93ff7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

branch.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,24 +90,24 @@ int install_branch_config(int flag, const char *local, const char *origin, const
9090
if (shortname) {
9191
if (origin)
9292
printf_ln(rebasing ?
93-
_("Branch %s set up to track remote branch %s from %s by rebasing.") :
94-
_("Branch %s set up to track remote branch %s from %s."),
93+
_("Branch '%s' set up to track remote branch '%s' from '%s' by rebasing.") :
94+
_("Branch '%s' set up to track remote branch '%s' from '%s'."),
9595
local, shortname, origin);
9696
else
9797
printf_ln(rebasing ?
98-
_("Branch %s set up to track local branch %s by rebasing.") :
99-
_("Branch %s set up to track local branch %s."),
98+
_("Branch '%s' set up to track local branch '%s' by rebasing.") :
99+
_("Branch '%s' set up to track local branch '%s'."),
100100
local, shortname);
101101
} else {
102102
if (origin)
103103
printf_ln(rebasing ?
104-
_("Branch %s set up to track remote ref %s by rebasing.") :
105-
_("Branch %s set up to track remote ref %s."),
104+
_("Branch '%s' set up to track remote ref '%s' by rebasing.") :
105+
_("Branch '%s' set up to track remote ref '%s'."),
106106
local, remote);
107107
else
108108
printf_ln(rebasing ?
109-
_("Branch %s set up to track local ref %s by rebasing.") :
110-
_("Branch %s set up to track local ref %s."),
109+
_("Branch '%s' set up to track local ref '%s' by rebasing.") :
110+
_("Branch '%s' set up to track local ref '%s'."),
111111
local, remote);
112112
}
113113
}

0 commit comments

Comments
 (0)