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

From: Junio C Hamano <[email-masked]>
Date: Tue, 21 May 2024 18:35:38 -0700

Nathan Faulkner <[email-masked]> 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.