Subject: Re: [PATCH] diff: add --no-indicators option

From: Harald Nordgren <[email-masked]>
Date: Sat, 20 Dec 2025 11:52:22 +0100

> 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