From: Duy Nguyen Date: Mon, 14 May 2018 14:52:53 GMT Subject: Re: [PATCH 1/3] checkout.c: add strict usage of -- before file_path Message-ID: In-Reply-To: <20180513210233.GA18892@alpha> On Sun, May 13, 2018 at 11:02 PM, Kevin Daudt wrote: > 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