Re: bug: git-diff silently fails when run outside of a repository (v1.5.4.2)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Tuesday, April 29, 2008 - 3:53 pm

"Mike Coleman" <tutufan@gmail.com> writes:


Unfortunately this does not have enough information to go by, as unlike
many other programs, "git diff" contains a hack to be usable as a better
(for certain definition of "better" I may not necessarily agree with) GNU
diff replacement when run outside a repository.

i.e.

	mkdir -p /var/tmp/junk
        cd /var/tmp/junk
        rm -fr .git ;# make sure it is not a repository
	echo >a hello
        echo >b world
	git diff --color a b

is supposed to work.
--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: bug: git-diff silently fails when run outside of a rep ..., Junio C Hamano, (Tue Apr 29, 3:53 pm)
Re: bug: git-diff silently fails when run outside of a rep ..., Johannes Schindelin, (Tue Apr 29, 5:56 pm)
Re: bug: git-diff silently fails when run outside of a rep ..., Johannes Schindelin, (Wed Apr 30, 1:34 am)