Re: Inconsistent behavior of the path disambiguator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 29, 2010 at 7:38 PM, Junio C Hamano <gitster@xxxxxxxxx> wrote:
> I do not think there is any bug.  You were being bitten by folks who tried
> to be helpful for newbies by introducing a(n arguably confusing) special
> case; I can see why this is confusing, though.

Thanks.

We just switched to Git, and our developers got used to being able to
just `git checkout branch` to create a local remote-tracking one for
that remote branch.

Then we were bitten by a branch `foo` when path `./foo` existed.

I think the syntactic sugar needs to either be removed, or
(preferably) be made consistent.

The current behavior is that if I try to checkout a branch that
doesn't exist, but does exist on the remote, git creates a local
remote tracking branch for the one I tried to check out.

It makes no sense IMHO for the disambiguating syntax to break that
behavior, especially since in some cases, the disambiguating syntax is
necessary.

Thanks, D
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]