From: Jakub Narebski Date: Fri, 17 Nov 2006 13:45:46 GMT Subject: Re: Cleaning up git user-interface warts Message-ID: In-Reply-To: <7v1wo3d6g4.fsf@assigned-by-dhcp.cox.net> Junio C Hamano wrote: > Marko Macek writes: > >>>> BTW, currently there's a minor bug: git-diff HEAD doesn't work before >>>> you make the first commit. Perhaps this should be special cased. >>> >>> That's only a _bug_ in your implementation of the synonym for >>> "svn diff" which blindly used "git diff HEAD". >> >> My "implementation" is taken from git-diff man page. It seems obvious >> that the situation before the first commit is just a special case if >> we consider git-diff to be Porcelain (which I do). > > Yes, "git diff" is a Porcelain. No question about it. > > I do not consider the current behaviour of "git diff HEAD" that > complains instead of giving runs of "foo is a new file and no > diff is available for it" a bug; you asked for diff from some > commit but the commit you gave was bogus (does not exist yet). git diff --root HEAD, perhaps? -- Jakub Narebski Warsaw, Poland ShadeHawk on #git