Re: Re Behavior of git log --diff-filter=d

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 03, 2025 at 07:12:20PM +0530, K Jayatheerth wrote:

> Yes, this is expected behavior
> You're seeing a difference because
> 
> --diff-filter=d tells Git to exclude commits that have deleted files in their diffs.
> However, this filter only applies if there is a diff to filter.

I don't think that is true. Even if we are not showing a diff, we'll
select which commits to show based on diff options (and show only those
that still touch something). That's why "--diff-filter=D" shows only the
commit with the deletion. With the "d" filter we should omit deletions,
leaving the second commit with no changes (and thus not shown).

-Peff




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux