Well, I am partly at fault that you _can_ execute git-diff outside of a
repository.
But given the _arguments_ you give to git-diff as above, I'd expect it to
actually care about the working directory. IOW I would _not_ expect this
to work outside of a working directory (even if it does).
Ciao,
Dscho
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html