summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2d8bed9)
raw | patch | inline | side by side (parent: 2d8bed9)
author | Jeff King <peff@peff.net> | |
Fri, 2 May 2008 14:05:36 +0000 (10:05 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 4 May 2008 01:47:18 +0000 (18:47 -0700) |
When calling pretty_print_commit, there is an implicit
assumption that passing in a non-NULL "subject" variable
for oneline or email formats means that the output is part
of a subject and therefore "subject" to rfc2047 encoding.
This is not the desired effect when reporting the movement
of detached HEAD.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
assumption that passing in a non-NULL "subject" variable
for oneline or email formats means that the output is part
of a subject and therefore "subject" to rfc2047 encoding.
This is not the desired effect when reporting the movement
of detached HEAD.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-checkout.c | patch | blob | history |
diff --git a/builtin-checkout.c b/builtin-checkout.c
index 7deb504837d252dd43fa9746c5d12342e93a5923..cf9875c13da9c194e1f4ad4ce456ed09808b849b 100644 (file)
--- a/builtin-checkout.c
+++ b/builtin-checkout.c
struct strbuf sb;
strbuf_init(&sb, 0);
parse_commit(commit);
- pretty_print_commit(CMIT_FMT_ONELINE, commit, &sb, 0, "", "", 0, 0);
+ pretty_print_commit(CMIT_FMT_ONELINE, commit, &sb, 0, NULL, NULL, 0, 0);
fprintf(stderr, "%s %s... %s\n", msg,
find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV), sb.buf);
strbuf_release(&sb);