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>
This commit is contained in:
Will Palmer
2010-05-03 22:18:57 -05:00
committed by Junio C Hamano
parent 600372497c
commit c197702156
5 changed files with 39 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ struct shortlog {
int in1;
int in2;
int user_format;
int abbrev;
char *common_repo_prefix;
int email;