]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
diff: honour flags with -q
authorEd Maste <emaste@FreeBSD.org>
Sat, 9 Jan 2021 16:22:28 +0000 (11:22 -0500)
committerEd Maste <emaste@FreeBSD.org>
Fri, 15 Jan 2021 14:25:35 +0000 (09:25 -0500)
commit7366c22508e98357a17664b683841b47d268b5f8
tree4935ef783110a91750ecd9cfef0ee8fa180d8046
parent56880a50139647318a123d67fe459ca840351729
diff: honour flags with -q

Previously -q (just print a line when files differ) ignored flags like
-w (ignore whitespace).  Avoid the D_BRIEF short-circuit when flags are
in effect.

PR: 252515
Reported by: Scott Aitken
Reviewed by: kevans
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28064

(cherry picked from commit 12a8d3027d414abd15798de1b6d8b01151bdac50)
usr.bin/diff/diffreg.c
usr.bin/diff/tests/diff_test.sh