Jacob Keller 660e113ce1 graph: add support for --line-prefix on all graph-aware output
Add an extension to git-diff and git-log (and any other graph-aware
displayable output) such that "--line-prefix=<string>" will print the
additional line-prefix on every line of output.

To make this work, we have to fix a few bugs in the graph API that force
graph_show_commit_msg to be used only when you have a valid graph.
Additionally, we extend the default_diff_output_prefix handler to work
even when no graph is enabled.

This is somewhat of a hack on top of the graph API, but I think it
should be acceptable here.

This will be used by a future extension of submodule display which
displays the submodule diff as the actual diff between the pre and post
commit in the submodule project.

Add some tests for both git-log and git-diff to ensure that the prefix
is honored correctly.

Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-08-31 18:07:09 -07:00
..
2016-06-07 17:43:39 -07:00
2016-07-13 11:24:10 -07:00
2016-08-08 14:48:44 -07:00
2016-07-25 14:13:32 -07:00
2016-02-26 13:37:16 -08:00
2015-11-20 08:02:05 -05:00
2016-08-03 15:10:28 -07:00
2016-07-28 10:34:42 -07:00
2016-05-09 12:29:08 -07:00
2016-08-03 15:10:28 -07:00
2016-06-17 15:46:10 -07:00
2015-10-21 15:59:34 -07:00
2016-02-26 13:37:16 -08:00
2016-07-13 11:24:10 -07:00
2016-07-14 15:50:41 -07:00
2016-08-03 15:10:28 -07:00
2016-07-25 14:13:33 -07:00
2016-07-13 11:24:10 -07:00
2015-10-05 13:20:08 -07:00
2016-07-25 14:13:36 -07:00
2016-04-29 12:59:09 -07:00
2016-07-28 10:34:42 -07:00