Code

Show branch information in short output of git status
authorDaniel Knittl-Frank <knittl89+git@googlemail.com>
Tue, 25 May 2010 13:45:51 +0000 (15:45 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Jun 2010 22:02:09 +0000 (15:02 -0700)
commit05a59a087c29c0b5dd267ec0bd488829427cc3d7
tree358d4a3faafb532c75bff09a14e80244c587a0aa
parentd0b16c8f878bef5c1268e033a3d1f427498c7008
Show branch information in short output of git status

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@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
wt-status.c
wt-status.h