]> Kevux Git Server - rit/commit
graph: add --graph-lane-limit option
authorPablo Sabater <pabloosabaterr@gmail.com>
Sat, 28 Mar 2026 00:11:12 +0000 (01:11 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Mar 2026 04:22:09 +0000 (21:22 -0700)
commitf756a3c78d4d88af1701996394650e6df6f66170
treeadd51bca288d1cab10f33e342450cb35c2684e4f
parentb2faaaec1193c64f7366e26a569ca6e231cbd478
graph: add --graph-lane-limit option

Replace the hard-coded lane limit with a user-facing
option '--graph-lane-limit=<n>'. It caps the number of
visible lanes to n. This option requires '--graph', without
it, limiting the graph has no meaning, in this case error out.

Zero and negative values are valid inputs but silently
ignored treating them as "no limit", the same as not using
the option. This follows what '--max-parents' does with
negative values.

The default is 0, same as not being used.

Signed-off-by: Pablo Sabater <pabloosabaterr@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/rev-list-options.adoc
graph.c
revision.c
revision.h
t/t4215-log-skewed-merges.sh