]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r338040: diff(1): Refactor -B a little bit
authorkevans <kevans@FreeBSD.org>
Wed, 3 Oct 2018 17:21:45 +0000 (17:21 +0000)
committerkevans <kevans@FreeBSD.org>
Wed, 3 Oct 2018 17:21:45 +0000 (17:21 +0000)
commitafc87de2e8ad28171ac2c21ed689875a7122874b
treea7306d7f51a372bf8d6c58bf6c0e45d58281ffe3
parent63bad25bbfd6851eface06e3d1d7acbfa3e28929
MFC r338040: diff(1): Refactor -B a little bit

Instead of doing a second pass to skip empty lines if we've specified -I, go
ahead and check both at once. Ignore critera has been split out into its own
function to try and keep the logic cleaner.
usr.bin/diff/diffreg.c