]> rtime.felk.cvut.cz Git - git.git/blobdiff - pretty.c
grep: support NUL chars in search strings for -F
[git.git] / pretty.c
index 7cb3a2af508bb5667cd74304f72b50766c749990..742b48bbd615d8915a090a271b7446accbaa8412 100644 (file)
--- a/pretty.c
+++ b/pretty.c
@@ -800,6 +800,10 @@ static size_t format_commit_one(struct strbuf *sb, const char *placeholder,
        case 'e':       /* encoding */
                strbuf_add(sb, msg + c->encoding.off, c->encoding.len);
                return 1;
+       case 'B':       /* raw body */
+               /* message_off is always left at the initial newline */
+               strbuf_addstr(sb, msg + c->message_off + 1);
+               return 1;
        }
 
        /* Now we need to parse the commit message. */