Re: [PATCH] diff: add --no-indicators option
- From
Harald Nordgren <haraldnordgren@gmail.com>
- Date
- Dec 20, 2025, 10:52 UTC
- Message-ID
- <20251220105222.47651-1-haraldnordgren@gmail.com>
- In-Reply-To
- <xmqqzf7du1ut.fsf@gitster.g>
> That was why I asked if there are precedents, either in GNU or BSD implementations of "diff".
Hi Junio!
Got it! I did some research and it seems GNU diff has features for this and BSD diff is more barebones.
GNU diff has the option to turn off +/- indicators with `--line-format='%L'`, however it also turns of colors even if supplying `--color=always`. Git doesn't have this option yet, so maybe it's time to implement it, but be a bit smarter so colors are shown its a TTY?
Harald