From: Eric Sunshine Date: Sat, 10 Jul 2021 07:11:54 GMT Subject: Re: [PATCH] worktree: teach `add` to accept --reason with --lock Message-ID: In-Reply-To: On Fri, Jul 9, 2021 at 11:23 AM Junio C Hamano wrote: > Eric Sunshine 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=` > > feels clunky and redundant, which is why I was wondering if `git > > worktree --lock[=]` 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? Yes, taking the stance that option order is significant would be workable.