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

Re: [PATCH] diff: document what --name-only shows

From
NFNathan Faulkner <natedogith1@gmail.com>
Date
May 18, 2024, 19:10 UTC
Message-ID
<4c4049e9-f5fa-41c3-8a6a-df4fca2f07f1@gmail.com>
In-Reply-To
<xmqqeda0jr7d.fsf@gitster.g>
Show 20 quoted lines
> diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
> index 7d73e976d9..0c456dfd0c 100644
> --- a/Documentation/diff-options.txt
> +++ b/Documentation/diff-options.txt
> @@ -318,12 +318,13 @@ explained for the configuration variable `core.quotePath` (see
>   linkgit:git-config[1]).
>   
>   --name-only::
> -	Show only names of changed files. The file names are often encoded in UTF-8.
> +	Show only the name of each changed file in the post-image tree.
> +	The file names are often encoded in UTF-8.
>   	For more information see the discussion about encoding in the linkgit:git-log[1]
>   	manual page.
>   
>   --name-status::
> -	Show only names and status of changed files. See the description
> +	Show only the name(s) and status of each changed file. See the description
>   	of the `--diff-filter` option on what the status letters mean.
>   	Just like `--name-only` the file names are often encoded in UTF-8.
>   

This new description sounds to me like it only shows files that exist in the to-commit, not any files that were deleted.

Previous: Junio C HamanoNext: Junio C Hamano
Message 2 of 3 in “diff: document what --name-only shows”
  1. diff: document what --name-only showsJunio C Hamano, May 17, 2024
  2. Nathan FaulknerMay 18, 2024
  3. Junio C HamanoMay 22, 2024

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.