On Thu, Mar 06, 2008 at 03:39:59PM +0000, Gerrit Pape wrote: > On Thu, Jan 03, 2008 at 03:57:15PM -0500, Joey Hess wrote: > > [EMAIL PROTECTED]:/etc/splashy>git diff > > [EMAIL PROTECTED]:/etc/splashy> > > > > git diff should print an error and exit nonzero if it's not in a git repo > > or cannot read .git. The current behavior is indistingushable from being > > in a git repo with no changes. > > Yes, this is kind of a mess. Contrary to what the git-diff > documentation says, git-diff actually can be used outside a repository > > $ echo foo >foo && echo bar >bar && git diff foo bar > diff --git a/foo b/bar > index 257cc56..5716ca5 100644 > --- a/foo > +++ b/bar > @@ -1 +1 @@ > -foo > +bar > > and IIRC this is by intention. > > Nevertheless, git-diff without any arguments outside a repository should > probably error out.
FYI http://thread.gmane.org/gmane.comp.version-control.git/80722/ Regards, Gerrit. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

