Subject: Re: [PATCH] worktree: teach `add` to accept --reason <string> with --lock

From: Junio C Hamano <[email-masked]>
Date: Fri, 09 Jul 2021 08:23:02 -0700

Eric Sunshine <[email-masked]> writes:

> "reasons". That possibility suggests that this particular
> reason-giving option of `git worktree add` ought to be named
> `--lock-reason`, but `git worktree add --lock --lock-reason=<reason>`
> feels clunky and redundant, which is why I was wondering if `git
> worktree --lock[=<reason>]` would be a better (and more convenient)
> UI.

Sure, but

    $ git worktree add --lock --reason=why-do-i-want-to-lock \
		--frotz --reason=why-do-i-want-to-frotz

would work just fine, no?