diff options
author | 2019-10-15 23:47:48 +0000 | |
---|---|---|
committer | 2019-10-16 11:11:24 +0900 | |
commit | 210179a20d585f6a96e0963db69790e590bd9433 (patch) | |
tree | 1beb3ed2ca8e062a7cc0425c481599e27a691e82 /Documentation/git-range-diff.txt | |
parent | graph: automatically track display width of graph lines (diff) | |
download | tgif-210179a20d585f6a96e0963db69790e590bd9433.tar.xz |
graph: handle line padding in `graph_next_line()`
Now that the display width of graph lines is implicitly tracked via the
`graph_line` interface, the calls to `graph_pad_horizontally()` no
longer need to be located inside the individual output functions, where
the character counting was previously being done.
All the functions called by `graph_next_line()` generate a line of
output, then call `graph_pad_horizontally()`, and finally change the
graph state if necessary. As padding is the final change to the output
done by all these functions, it can be removed from all of them and done
in `graph_next_line()` instead.
I've also moved the guard in `graph_output_padding_line()` that checks
the graph has a commit; this function is only called by
`graph_next_line()` and we must not pad the `graph_line` if no commit is
set.
Signed-off-by: James Coglan <jcoglan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-range-diff.txt')
0 files changed, 0 insertions, 0 deletions