]> git.99rst.org Git - git.git/commit
lib-log-graph: move check_graph function
authorPablo Sabater <redacted>
Tue, 14 Jul 2026 12:09:32 +0000 (14:09 +0200)
committerJunio C Hamano <redacted>
Tue, 14 Jul 2026 14:32:50 +0000 (07:32 -0700)
commit641588bbcd1e80e084881d547e10aca8b32c328e
treeadf0779f8a97d7cdc8048a0cb21de2823f8ed23e
parent2e5d1cc0f8388503af74d729e8feecbd94c8e2d0
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 <redacted>
Mentored-by: Chandra Pratap <redacted>
Signed-off-by: Pablo Sabater <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/lib-log-graph.sh
t/t4215-log-skewed-merges.sh
t/t6016-rev-list-graph-simplify-history.sh
git clone https://git.99rst.org/PROJECT