branch: quote branch/ref names to improve readability
Signed-off-by: Kaartic Sivaraam <kaarticsivaraam91196@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
52668846ea
commit
9c93ff7cc4
16
branch.c
16
branch.c
@ -90,24 +90,24 @@ int install_branch_config(int flag, const char *local, const char *origin, const
|
||||
if (shortname) {
|
||||
if (origin)
|
||||
printf_ln(rebasing ?
|
||||
_("Branch %s set up to track remote branch %s from %s by rebasing.") :
|
||||
_("Branch %s set up to track remote branch %s from %s."),
|
||||
_("Branch '%s' set up to track remote branch '%s' from '%s' by rebasing.") :
|
||||
_("Branch '%s' set up to track remote branch '%s' from '%s'."),
|
||||
local, shortname, origin);
|
||||
else
|
||||
printf_ln(rebasing ?
|
||||
_("Branch %s set up to track local branch %s by rebasing.") :
|
||||
_("Branch %s set up to track local branch %s."),
|
||||
_("Branch '%s' set up to track local branch '%s' by rebasing.") :
|
||||
_("Branch '%s' set up to track local branch '%s'."),
|
||||
local, shortname);
|
||||
} else {
|
||||
if (origin)
|
||||
printf_ln(rebasing ?
|
||||
_("Branch %s set up to track remote ref %s by rebasing.") :
|
||||
_("Branch %s set up to track remote ref %s."),
|
||||
_("Branch '%s' set up to track remote ref '%s' by rebasing.") :
|
||||
_("Branch '%s' set up to track remote ref '%s'."),
|
||||
local, remote);
|
||||
else
|
||||
printf_ln(rebasing ?
|
||||
_("Branch %s set up to track local ref %s by rebasing.") :
|
||||
_("Branch %s set up to track local ref %s."),
|
||||
_("Branch '%s' set up to track local ref '%s' by rebasing.") :
|
||||
_("Branch '%s' set up to track local ref '%s'."),
|
||||
local, remote);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user