summaryrefslogtreecommitdiff
path: root/shortlog.h
diff options
context:
space:
mode:
authorWill Palmer <wmpalmer@gmail.com>2010-05-03 22:18:57 -0500
committerJunio C Hamano <gitster@pobox.com>2010-05-04 15:38:58 -0700
commitc197702156e2164074327f5e870ab0d3021977fc (patch)
tree072768fbbd361d76448e90d508f7914afc8071d7 /shortlog.h
parent600372497c668045a365b9eab76987ee19405f7a (diff)
downloadgit-c197702156e2164074327f5e870ab0d3021977fc.tar.gz
pretty: Respect --abbrev option
Prior to this, the output of git log -1 --format=%h was always 7 characters long, without regard to whether --abbrev had been passed. Signed-off-by: Will Palmer <wmpalmer@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'shortlog.h')
-rw-r--r--shortlog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/shortlog.h b/shortlog.h
index bc02cc29ef..de4f86fb97 100644
--- a/shortlog.h
+++ b/shortlog.h
@@ -12,6 +12,7 @@ struct shortlog {
int in1;
int in2;
int user_format;
+ int abbrev;
char *common_repo_prefix;
int email;