Subject: Re: [GSoC PATCH v4 1/3] graph: add --graph-lane-limit option

From: Johannes Sixt <[email-masked]>
Date: Wed, 25 Mar 2026 11:03:44 +0100

Am 23.03.26 um 22:59 schrieb Pablo Sabater:
> @@ -3172,6 +3174,10 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s
>  
>  	if (revs->no_walk && revs->graph)
>  		die(_("options '%s' and '%s' cannot be used together"), "--no-walk", "--graph");
> +
> +	if (revs->graph_max_lanes > 0 && !revs->graph)
> +		die(_("option '%s' requires '%s'"), "--graph-lane-limit", "--graph");
> +
>  	if (!revs->reflog_info && revs->grep_filter.use_reflog_filter)
>  		die(_("the option '%s' requires '%s'"), "--grep-reflog", "--walk-reflogs");

You help translators if you make the new error message format string
exactly identical to the one that we see in the post-context.

-- Hannes