Re: DWIM "git checkout frotz" to "git checkout -b frotz origin/frotz"

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

 



On Sunday 06 June 2010, Clemens Buchacher wrote:
> On Sun, Jun 06, 2010 at 12:18:05PM -0400, Jeff King wrote:
> > Moreover, the burden for arguing against it is a little higher. It is
> > no longer "I think this is a bad idea" but "I think this is a bad
> > idea, and it is so bad that it is worth changing behavior that users
> > may have become accustomed to".
> 
> I argue that people are more likely to be surprised and confused by
> this feature rather than being accustomed to it already. I am also
> waiting to hear from someone who actively uses this feature.

I use this feature all the time, and find it very nice and useful.

Moreover, at $DAYJOB, we have a lot of Git newbies (many of them still can't 
properly juggle remote branches. remote-tracking branches, and local 
branches with tracking info). They mostly work on local topic branches that 
tracks corresponding shared topic branches in a central repo. For them, 
switching to one of these topic branches is simply a matter of 'git checkout 
<branchname>', without having to care (or know) if you've already created 
the local branch or not. In this case, Git really does the Right Thing (tm) 
for us.

In several cases this DWIMmery has prompted people to update from an old Git 
version, just to get this feature.


...Johan

-- 
Johan Herland, <johan@xxxxxxxxxxx>
www.herland.net
--
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]