Re: git-diff: --ignore-matching-lines has no effect on the output when --name-only is used
- From
Lidong Yan <yldhome2d2@gmail.com>
- Date
- Jul 24, 2025, 03:38 UTC
- Message-ID
- <8EE6292C-E03B-4E1B-B8D9-2352531034DF@gmail.com>
- In-Reply-To
- <CAPig+cR7M1VL=9PQ1+xsj58=EPi0jR8oTdTnkGmMAD4gXeOnKw@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 13 quoted lines
> > On Wed, Jul 23, 2025 at 9:56 PM Lidong Yan <yldhome2d2@gmail.com> wrote: >> Junio C Hamano <gitster@pobox.com> write: >>> Lidong Yan <yldhome2d2@gmail.com> writes: >>>> The `—ignore-matching-lines` options is introduced in 296d4a94e72 >>>> (Michał Kępień 2020-10-20 08:48:09 +0200 5803) Since the Git documentation >>> >>> WTH is that reference format? >> >> Sorry. I should use `git log --format="%h (%s, %ad)" --date=short -n 1 296d4a`. > > Simpler: git log --format=reference -n1 296d4a >
Got it, thanks very much. Lidong