Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 1/8] Removing -n option from git-diff-files documentation

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:07

Petr Baudis [off-list ref] writes:
On Fri, Apr 27, 2007 at 07:05:50AM CEST, Andrew Ruder wrote:
quoted
-n is not a short form of --no-index as the documentation
suggests.  Removing it from the documentation and command
usage string.
Nevertheless, git-diff-files does accept -n, apparently to limit the
number of outputted entries or something. Where is it documented?
It is not "accept" but more like "absorb and ignore".  We
(ab)use the option parser from revision traversal machinery when
parsing "git-diff" options, but obviously options such as
max-count that relate to commit limiting do not have any meaning
to "git-diff-files" or "git-diff".
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help