summaryrefslogtreecommitdiff
path: root/archive.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-08-20 12:53:09 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-08-20 12:53:09 -0700
commit316fa401e1c953ffc80533aaf6839817595cdd77 (patch)
tree6ad48c40abadde6c9c7d44a9d03246da65f94f25 /archive.c
parentMerge branch 'vs/doc-spell' into maint (diff)
parentexamples/commit: use --abbrev for commit summary (diff)
downloadtgif-316fa401e1c953ffc80533aaf6839817595cdd77.tar.xz
Merge branch 'jn/fix-abbrev' into maint
* jn/fix-abbrev: examples/commit: use --abbrev for commit summary checkout, commit: remove confusing assignments to rev.abbrev archive: abbreviate substituted commit ids again
Diffstat (limited to 'archive.c')
-rw-r--r--archive.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/archive.c b/archive.c
index d700af3b62..edd68534fa 100644
--- a/archive.c
+++ b/archive.c
@@ -33,6 +33,7 @@ static void format_subst(const struct commit *commit,
struct strbuf fmt = STRBUF_INIT;
struct pretty_print_context ctx = {0};
ctx.date_mode = DATE_NORMAL;
+ ctx.abbrev = DEFAULT_ABBREV;
if (src == buf->buf)
to_free = strbuf_detach(buf, NULL);