diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-10-30 20:18:31 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-10-30 20:18:31 -0700 |
commit | 5f809ff50921bee44bbf88c49056e7d145c0c35f (patch) | |
tree | 451ba24442900b54c90264056998effaf25cd4eb /builtin-checkout.c | |
parent | d39d667169fda640065d48b70288c3342bd3195d (diff) | |
parent | b7b10385a84c741a4fe219807c9511f69403640a (diff) | |
download | git-5f809ff50921bee44bbf88c49056e7d145c0c35f.tar.gz |
fixup tr/stash-format merge
Diffstat (limited to 'builtin-checkout.c')
-rw-r--r-- | builtin-checkout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-checkout.c b/builtin-checkout.c index da04eed391..64f3a11ae1 100644 --- a/builtin-checkout.c +++ b/builtin-checkout.c @@ -302,8 +302,9 @@ static void show_local_changes(struct object *head) static void describe_detached_head(char *msg, struct commit *commit) { struct strbuf sb = STRBUF_INIT; + struct pretty_print_context ctx = {0}; parse_commit(commit); - pretty_print_commit(CMIT_FMT_ONELINE, commit, &sb, 0, NULL, NULL, 0, 0); + pretty_print_commit(CMIT_FMT_ONELINE, commit, &sb, &ctx); fprintf(stderr, "%s %s... %s\n", msg, find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV), sb.buf); strbuf_release(&sb); |