diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-08-18 12:28:58 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-08-18 12:28:58 -0700 |
commit | 226d06c16bcafda3417163437be9845130fd4998 (patch) | |
tree | cccf5515162f65b6829d94d33bf381b4cfee2fa1 /archive.c | |
parent | fdfdde58faf93551abea0f92f7688c1dc5de59be (diff) | |
parent | 7f1592db5d4cba2b3de3a1ce46eb8c05bd33e0a1 (diff) | |
download | git-226d06c16bcafda3417163437be9845130fd4998.tar.gz |
Merge branch 'jn/fix-abbrev'
* 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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |