Re: DWIM "git checkout frotz" to "git checkout -b frotz origin/frotz"
- From
Johan Herland <johan@herland.net>
- Date
- Jun 6, 2010, 18:34 UTC
- Message-ID
- <201006062034.19471.johan@herland.net>
- In-Reply-To
- <20100606165554.GB10104@localhost>
On Sunday 06 June 2010, Clemens Buchacher wrote:
Show 9 quoted lines
> 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@herland.net> www.herland.net