summaryrefslogtreecommitdiff
path: root/wt-status.h
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhost@microsoft.com>2016-08-11 14:45:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-08-11 18:15:40 (GMT)
commitd9fc746cd77910a7dec53abfec36df5c699b33c2 (patch)
tree03b5603ad466ee45e75e026c3869fa537282bea6 /wt-status.h
parent24959bad5dba353497323f10b3bf39f243c0f174 (diff)
downloadgit-d9fc746cd77910a7dec53abfec36df5c699b33c2.zip
git-d9fc746cd77910a7dec53abfec36df5c699b33c2.tar.gz
git-d9fc746cd77910a7dec53abfec36df5c699b33c2.tar.bz2
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>
Diffstat (limited to 'wt-status.h')
-rw-r--r--wt-status.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/wt-status.h b/wt-status.h
index 43fd3fc..e401837 100644
--- a/wt-status.h
+++ b/wt-status.h
@@ -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;