interdiff: teach show_interdiff() to indent interdiff
authorEric Sunshine <sunshine@sunshineco.com>
Sun, 22 Jul 2018 09:57:07 +0000 (05:57 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Jul 2018 19:50:06 +0000 (12:50 -0700)
commit3b026417eaa1f32f53b85d1b131194ae1cbbf068
tree88021090ad5695a6497243778afdc12d437b9007
parent5ac290f9c00edb8963585c322fae9fb06a98167d
interdiff: teach show_interdiff() to indent interdiff

A future change will allow "git format-patch --interdiff=<prev> -1" to
insert an interdiff into the commentary section of the lone patch of a
1-patch series. However, to prevent the inserted interdiff from
confusing git-am, as well as human readers, it needs to be indented.
Therefore, teach show_interdiff() how to indent.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c
interdiff.c
interdiff.h