diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-05-31 12:19:11 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-31 12:19:11 -0700 |
commit | f67d2e82d6d2fd385d3d20e8d348eaf69dc95041 (patch) | |
tree | e1c16bbf610d405e77443f51f121d857d44eba0b /builtin/branch.c | |
parent | 1c9d71944a7a35cdfeb09200b20e261737cdc0b9 (diff) | |
parent | 9553d2b26395d9a19bf60875784661090f607f4a (diff) | |
download | git-f67d2e82d6d2fd385d3d20e8d348eaf69dc95041.tar.gz |
Merge branch 'jk/format-patch-am'
* jk/format-patch-am:
format-patch: preserve subject newlines with -k
clean up calling conventions for pretty.c functions
pretty: add pp_commit_easy function for simple callers
mailinfo: always clean up rfc822 header folding
t: test subject handling in format-patch / am pipeline
Conflicts:
builtin/branch.c
builtin/log.c
commit.h
Diffstat (limited to 'builtin/branch.c')
-rw-r--r-- | builtin/branch.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin/branch.c b/builtin/branch.c index 9cca1b9afc..d6ab93bfbb 100644 --- a/builtin/branch.c +++ b/builtin/branch.c @@ -399,9 +399,7 @@ static void add_verbose_info(struct strbuf *out, struct ref_item *item, struct commit *commit = item->commit; if (commit && !parse_commit(commit)) { - struct pretty_print_context ctx = {0}; - pretty_print_commit(CMIT_FMT_ONELINE, commit, - &subject, &ctx); + pp_commit_easy(CMIT_FMT_ONELINE, commit, &subject); sub = subject.buf; } |