Re: [PATCH 1/3] checkout.c: add strict usage of -- before file_path
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- May 14, 2018, 14:52 UTC
- Message-ID
- <CACsJy8B2TVr1g+k+eSQ=pBEO3WN4_LtgLo9gpur8X7Z9GOFL_A@mail.gmail.com>
- In-Reply-To
- <20180513210233.GA18892@alpha>
On Sun, May 13, 2018 at 11:02 PM, Kevin Daudt <me@ikke.info> wrote:
Show 6 quoted lines
> One data point indicating this is giving issues is that today on IRC a > user was confused why `git checkout pt` did not show any message and did > not checkout a remote branch called 'pt' as they expected. It turned out > they also had a local file/dir called 'pt', which caused git to checkout > that file/dir rather than creating a local branch based on the remote > branch.
Now this is something we should fix. When an argument can be interpreted in more than one way Git should reject it, but I think this ambiguation logic does not take dwim (i.e. create a new branch beased on remote) into account.
-- Duy