Re: [PATCH v3 3/3] worktree: make add <path> dwim
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Nov 19, 2017, 20:20 UTC
- Message-ID
- <CAPig+cTmqHt5s+C1vTFA7S4ZBwjqnzkn-2wA6i3jVeLw7i1_Lg@mail.gmail.com>
- In-Reply-To
- <CAPig+cQqbvuZg0Y8ZMObZc7mYXzohooVBFj0-o+CGGXrgGLp5w@mail.gmail.com>
On Sun, Nov 19, 2017 at 2:04 PM, Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 6 quoted lines
> On Sat, Nov 18, 2017 at 5:47 PM, Thomas Gummerer <t.gummerer@gmail.com> wrote: >> +To disable the behaviour of trying to match the basename of <path> to >> +a remote, and always create a new branch from HEAD, the `--no-track` > > Does --[no-]track deserve to be documented in the OPTIONS section like > the other options are?
One other question: Since this is re-using the well-known option name --no-track, should it also get applied to the "git worktree add -b foo dir origin/foo" case, as well, which you pointed out (in the patch 2/3 thread) already DWIMs tracking automatically? (I can easily see someone reporting it as a bug if "git worktree add --no-track -b foo dir origin/foo" does not suppress tracking.)