I like my approach (and git diff approach) more because it is the least surprising:
$ diff | program > file
should produce a valid diff and
$ diff --color=yes | program > file
should produce a colored diff.
I expect that if GNU diff ever gets colored output, it will have this behaviour (like grep and git diff do).
But I fully understand that changing the defaults once set is difficult. Feel free to close this as wontfix.
I like my approach (and git diff approach) more because it is the least surprising:
$ diff | program > file
should produce a valid diff and
$ diff --color=yes | program > file
should produce a colored diff.
I expect that if GNU diff ever gets colored output, it will have this behaviour (like grep and git diff do).
But I fully understand that changing the defaults once set is difficult. Feel free to close this as wontfix.