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

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

From
Junio C Hamano <gitster@pobox.com>
Date
May 22, 2024, 01:35 UTC
Message-ID
<xmqq7cfmiq6t.fsf@gitster.g>
In-Reply-To
<4c4049e9-f5fa-41c3-8a6a-df4fca2f07f1@gmail.com>
Nathan Faulkner <natedogith1@gmail.com> writes:
> This new description sounds to me like it only shows files that exist
> in the to-commit, not any files that were deleted.
True.  

The thing is "diff" works on pair of files from old side and new side, so a removed path still conceptually exists on both sides as a change from

    <old path name, old state (has certain contents)>
to
    <new path name, new state (no longer exists)>
It is the same story for a created path.

Having learned that, a proposal to rephrase the updated documentation is very much welcomed.

Thanks.
Previous: Nathan Faulkner
Message 3 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.