]> granicus.if.org Git - git/commit
graph: extract logic for moving to GRAPH_PRE_COMMIT state
authorJames Coglan <jcoglan@gmail.com>
Tue, 15 Oct 2019 23:47:52 +0000 (23:47 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Oct 2019 02:11:24 +0000 (11:11 +0900)
commitee7abb5ffaaba8c3fc5f89765609f30d638f63f7
treeef6e353ea23d219c11afa42c9bfe435e4b6a5638
parent46ba2abdfa95a26a86714dab386a72a3a5b706a5
graph: extract logic for moving to GRAPH_PRE_COMMIT state

This computation is repeated in a couple of places and I need to add
another condition to it to implement a further improvement to the graph
rendering, so I'm extracting this into a function.

Signed-off-by: James Coglan <jcoglan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
graph.c