From: Manlio Perillo Date: Tue, 18 Dec 2012 19:10:05 GMT Subject: Re: Incorrect man page for git-diff Message-ID: <50D0BF8D.5050004@gmail.com> In-Reply-To: <7vwqwffcxp.fsf@alter.siamese.dyndns.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Il 18/12/2012 19:11, Junio C Hamano ha scritto: > Manlio Perillo writes: > >> Documentation seems to suggest this is supported, but it is not true: >> >> $ git diff HEAD:git.c HEAD~100:git.c -- git.c >> usage: git diff [] [ []] [--] [...] >> >> unless I'm missing something. > > Neither HEAD:git.c nor HEAD~100:git.c are commits. Well, the documentation calls these parameter "commit", later saying "For a more complete list of ways to spell , see "SPECIFYING REVISIONS". > You are > comparing two blob objects in their raw forms without textconv nor > filter. > Note that I was not missing the fact that git diff does not apply texconv and filters. I'm not sure the man page is wrong and should be changed: -- usage: git diff [] [ []] [--] [...] ++ usage: git diff [] [ []] Regards Manlio -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlDQv40ACgkQscQJ24LbaUT+vwCgj0rjaZbc+/x0+jvAGZydbVKB 244An2pWLj7t4nG3lZzx+LGyH3mjTujS =TmVI -----END PGP SIGNATURE-----