diff: support -qq to output absolutely nothing
MFC after: 1 week
Sponsored by: Klara, Inc.
Differential D46717
diff: support -qq to output absolutely nothing Authored by allanjude on Sep 20 2024, 3:31 PM.
Details
Diff Detail
Event TimelineComment Actions What is the point of this? cmp -s will do the same job faster.
Comment Actions I don't understand the point of it either, is it for compatibility? but on the technical side this is ok with me. Comment Actions If you're going to do this, can you update the doc? I'm partial to what we did in pkg.8: Specify twice .Pq Fl vv to also show nothing But, having multiple ways to do the same thing is the enemy of coherency. Also diff has an intense amount of flags already. Comment Actions The point is to use diff's -w to ignore whitespace changes, something cmp can't do, in https://reviews.freebsd.org/D46716 Comment Actions LGTM from manpages, I defer to src colleagues for code implementation or if we should do this. Thanks Allan!
Comment Actions This change is broken. The exit code no longer communicates whether or not there's a diff between 2 files when -qq is specified: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299643 . Comment Actions I posted this revision to address the breakage I noted above: https://reviews.freebsd.org/D60910 . | ||||||||||||||||