git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Misleading documentation for git-diff-files (diff-filter)

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 4, 2018, 19:09 UTC
Message-ID
<xmqq1sj5fnkt.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20180104164941.GB18376@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 14 quoted lines
> diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
> index 9d1586b956..743af97b06 100644
> --- a/Documentation/diff-options.txt
> +++ b/Documentation/diff-options.txt
> @@ -469,6 +469,12 @@ ifndef::git-format-patch[]
>  +
>  Also, these upper-case letters can be downcased to exclude.  E.g.
>  `--diff-filter=ad` excludes added and deleted paths.
> ++
> +Note that not all diffs can feature all types. For instance, diffs
> +from the index to the working tree can never have Added entries
> +(because the set of paths included in the diff is limited by what is in
> +the index).  Similarly, copied and renamed entries cannot appear if
> +detection for those types is disabled.
Makes sense; thanks.
Previous: Jeff KingNext: John Cheng
Message 5 of 6 in “Misleading documentation for git-diff-files (diff-filter)”
  1. John ChengJan 3, 2018
  2. Junio C HamanoJan 3, 2018
  3. John ChengJan 4, 2018
  4. Jeff KingJan 4, 2018
  5. Junio C HamanoJan 4, 2018
  6. John ChengJan 4, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.