Re: [PATCH] worktree: teach `add` to accept --reason <string> with --lock
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 6 quoted lines
> "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?