From: Michael J Gruber Date: Tue, 25 May 2010 14:03:15 GMT Subject: Re: [PATCH] Show branch information in short output of git status Message-ID: <4BFBD8A3.8040203@drmicha.warpmail.net> In-Reply-To: <284d7af64fec2dc0cabdb5cf29ab3fd34fad79f0.1274794889.git.git@drmicha.warpmail.net> > From: Daniel Knittl-Frank > > 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 > --- > 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