Re: Cleaning up git user-interface warts
- From
Junio C Hamano <junkio@cox.net>
- Date
- Nov 16, 2006, 18:27 UTC
- Message-ID
- <7vlkmb9rgx.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0611160932340.3349@woody.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 13 quoted lines
> On Thu, 16 Nov 2006, Linus Torvalds wrote: >> >> (And the real reason for that is simple: "git pull" simply wants to have >> something to _start_ with. It's not hugely fundamental, it's just how it >> was written). > > Here's a very lightly tested patch that allows you to use "git pull" to > populate an empty repository. > > I'm not at all sure this is necessarily the nicest way to do it, but it's > fairly straightforward. > > Junio, what do you think?
Yeah, I talked about making "merge" treat missing HEAD as a special case of fast forward, but I like yours better. It is a lot cleaner and to the point.