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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Mike Coleman" <tutufan@xxxxxxxxx> writes:

> At least in version 1.5.4.2, git-diff silently fails when not run
> inside a repository.  It should give an error diagnostic, especially
> since "no output" would otherwise be a meaningful response.

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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux