Re: [RFD/PATCH 3/5] checkout: Use remote refspecs when DWIMming tracking branches

2013-04-20 Thread Johan Herland
On Fri, Apr 19, 2013 at 9:44 PM, Junio C Hamano wrote: > I am _guessing_ that you mean a case like this: > > [remote "origin"] > fetch = refs/heads/*:refs/remotes/origin/* > [remote "xyzzy"] > fetch = refs/heads/*:refs/remotes/xyzzy/nitfol/* >

Re: [RFD/PATCH 3/5] checkout: Use remote refspecs when DWIMming tracking branches

2013-04-19 Thread Junio C Hamano
Johan Herland writes: > The DWIM mode of checkout allows you to run "git checkout foo" when there is > no existing local ref or path called "foo", and there is exactly one remote > with a remote-tracking branch called "foo". Git will then automatically > create a new local branch called "foo" usi

[RFD/PATCH 3/5] checkout: Use remote refspecs when DWIMming tracking branches

2013-04-18 Thread Johan Herland
The DWIM mode of checkout allows you to run "git checkout foo" when there is no existing local ref or path called "foo", and there is exactly one remote with a remote-tracking branch called "foo". Git will then automatically create a new local branch called "foo" using the remote-tracking "foo" as