Re: [PATCH] Show branch information in short output of git status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: Daniel Knittl-Frank <knittl89+git@xxxxxxxxxxxxxx>
> 
> This patch adds a first line in the output of `git status -s` when given
> the option `-b` or `--branch`, showing which branch the user is
> currently on, and in case of tracking branches the number of commits on
> each branch.
> 
> Signed-off-by: Daniel Knittl-Frank <knittl89+git@xxxxxxxxxxxxxx>
> ---
> Sent by the not-so-atomatic mob-robot...

...with the not so automagic spell-checker...

> I noticed some white space issue but assume Junio fixes that automatically
> when applying.
> 
>  builtin/commit.c |    8 ++++-
>  wt-status.c      |   68 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
>  wt-status.h      |    6 +++-
>  3 files changed, 76 insertions(+), 6 deletions(-)

I tried it and I like it! [Ordinary status could use the same colors for
tracking info, they're helpful.]

I also like the fact that --porcelain -b does what it should (unchanged
by the patch).

I'm wondering what "git status -b" should do. Currently, "-b" is ignored
silently. One may argue it's okay since ordinary status shows tracking
info anyways.

Michael
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]