From 0f33a0677d6d93b3f6d8fb7d1df62f30eb7b73a9 Mon Sep 17 00:00:00 2001 From: John Keeping Date: Fri, 5 Apr 2013 17:12:08 +0100 Subject: submodule: print graph output next to submodule log When running "git log -p --submodule=log", the submodule log is not indented by the graph output, although all other lines are. Fix this by prepending the current line prefix to each line of the submodule log. Signed-off-by: John Keeping Signed-off-by: Junio C Hamano --- diff.c | 1 + 1 file changed, 1 insertion(+) (limited to 'diff.c') diff --git a/diff.c b/diff.c index db952a5bc7..28a742c248 100644 --- a/diff.c +++ b/diff.c @@ -2255,6 +2255,7 @@ static void builtin_diff(const char *name_a, const char *del = diff_get_color_opt(o, DIFF_FILE_OLD); const char *add = diff_get_color_opt(o, DIFF_FILE_NEW); show_submodule_summary(o->file, one ? one->path : two->path, + line_prefix, one->sha1, two->sha1, two->dirty_submodule, meta, del, add, reset); return; -- cgit v1.2.1