]> git.ipfire.org Git - thirdparty/git.git/commit
lib-log-graph: move check_graph function
authorPablo Sabater <pabloosabaterr@gmail.com>
Sat, 20 Jun 2026 10:11:50 +0000 (12:11 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 20 Jun 2026 14:31:28 +0000 (07:31 -0700)
commit440158567fc89b050459638d07e804b3bbc7e09a
tree276f22b60c2a2d541c5d24dddadab3254c9a4cca
parentea97ad8d017de0c9037451a78008a0fd60abea0c
lib-log-graph: move check_graph function

check_graph is a function shared in the test files t4215 and t6016 used
to format the output graph, but instead of being in a file called by
both test, the function code is repeated in each file.

Move check_graph to lib-log-graph.sh file which both tests already
import graph functions from, renaming it to lib_test_check_graph.

This function is needed for the following commit which includes graph
tests in a new file and requires check_graph.

Mentored-by: Karthik Nayak <karthik.188@gmail.com>
Mentored-by: Chandra Pratap <chandrapratap3519@gmail.com>
Signed-off-by: Pablo Sabater <pabloosabaterr@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-log-graph.sh
t/t4215-log-skewed-merges.sh
t/t6016-rev-list-graph-simplify-history.sh