зеркало из https://github.com/microsoft/git.git
git-status always says what branch it's on
If the current branch was "master" then git-status wouldn't say # On branch XXXX In its output. This patch makes it so that this message is always output; regardless of branch name. Signed-off-by: Andy Parkins <andyparkins@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Родитель
82dca84871
Коммит
a990999e0d
|
@ -271,7 +271,7 @@ static void wt_status_print_verbose(struct wt_status *s)
|
||||||
|
|
||||||
void wt_status_print(struct wt_status *s)
|
void wt_status_print(struct wt_status *s)
|
||||||
{
|
{
|
||||||
if (s->branch && strcmp(s->branch, "refs/heads/master"))
|
if (s->branch)
|
||||||
color_printf_ln(color(WT_STATUS_HEADER),
|
color_printf_ln(color(WT_STATUS_HEADER),
|
||||||
"# On branch %s", s->branch);
|
"# On branch %s", s->branch);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче