diff options
author | 2019-10-15 23:47:49 +0000 | |
---|---|---|
committer | 2019-10-16 11:11:24 +0900 | |
commit | 9157a2a032c4c5a154782537b6f1e2f8b7bd7435 (patch) | |
tree | d11a3342bcca8d641e04653b53af528ef1929650 /Documentation/git-range-diff.txt | |
parent | graph: handle line padding in `graph_next_line()` (diff) | |
download | tgif-9157a2a032c4c5a154782537b6f1e2f8b7bd7435.tar.xz |
graph: reuse `find_new_column_by_commit()`
I will shortly be making some changes to
`graph_insert_into_new_columns()` and so am trying to simplify it. One
possible simplification is that we can extract the loop for finding the
element in `new_columns` containing the given commit.
`find_new_column_by_commit()` contains a very similar loop but it
returns a `struct column *` rather than an `int` offset into the array.
Here I'm introducing a version that returns `int` and using that in
`graph_insert_into_new_columns()` and `graph_output_post_merge_line()`.
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