Junio C Hamano wrote: > Marko Macek <marko.macek@xxxxxxx> 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 - 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