status: print branch info with --porcelain=v2 --branch

Expand porcelain v2 output to include branch and tracking
branch information. This includes the commit id, the branch,
the upstream branch, and the ahead and behind counts.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff Hostetler
2016-08-11 10:45:59 -04:00
committed by Junio C Hamano
parent 24959bad5d
commit d9fc746cd7
3 changed files with 96 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ struct wt_status {
int hints;
enum wt_status_format status_format;
unsigned char sha1_commit[GIT_SHA1_RAWSZ]; /* when not Initial */
/* These are computed during processing of the individual sections */
int commitable;