summaryrefslogtreecommitdiff
path: root/builtin/blame.c
diff options
context:
space:
mode:
authorLibravatar James Coglan <jcoglan@gmail.com>2019-10-15 23:47:49 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-10-16 11:11:24 +0900
commit9157a2a032c4c5a154782537b6f1e2f8b7bd7435 (patch)
treed11a3342bcca8d641e04653b53af528ef1929650 /builtin/blame.c
parentgraph: handle line padding in `graph_next_line()` (diff)
downloadtgif-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 'builtin/blame.c')
0 files changed, 0 insertions, 0 deletions