Home
last modified time | relevance | path

Searched hist:db9cccfbb1a724acf65756da9439009da433b810 (Results 1 – 3 of 3) sorted by relevance

/freebsd/usr.bin/diff/
H A Ddiff.hdiff db9cccfbb1a724acf65756da9439009da433b810 Mon Apr 20 18:14:44 CEST 2020 Kyle Evans <kevans@FreeBSD.org> diff(1): reject conflicting formatting options

This matches GNU diff(1) behavior and, more importantly, eliminates any
source of confusion if multiple formatting options are specified.

Note that the committed diff differs slightly from the submitted: I've
modified it so that we initialize diff_format to something that isn't an
accepted format option so that we can also reject --normal -c and -c
--normal, which would've otherwise been accepted because the default was
--normal. After option parsing we default it to D_NORMAL if it's still
unset.

PR: 243975
Submitted by: fehmi noyan isi
MFC after: 1 week
H A Ddiff.cdiff db9cccfbb1a724acf65756da9439009da433b810 Mon Apr 20 18:14:44 CEST 2020 Kyle Evans <kevans@FreeBSD.org> diff(1): reject conflicting formatting options

This matches GNU diff(1) behavior and, more importantly, eliminates any
source of confusion if multiple formatting options are specified.

Note that the committed diff differs slightly from the submitted: I've
modified it so that we initialize diff_format to something that isn't an
accepted format option so that we can also reject --normal -c and -c
--normal, which would've otherwise been accepted because the default was
--normal. After option parsing we default it to D_NORMAL if it's still
unset.

PR: 243975
Submitted by: fehmi noyan isi
MFC after: 1 week
/freebsd/usr.bin/diff/tests/
H A Ddiff_test.shdiff db9cccfbb1a724acf65756da9439009da433b810 Mon Apr 20 18:14:44 CEST 2020 Kyle Evans <kevans@FreeBSD.org> diff(1): reject conflicting formatting options

This matches GNU diff(1) behavior and, more importantly, eliminates any
source of confusion if multiple formatting options are specified.

Note that the committed diff differs slightly from the submitted: I've
modified it so that we initialize diff_format to something that isn't an
accepted format option so that we can also reject --normal -c and -c
--normal, which would've otherwise been accepted because the default was
--normal. After option parsing we default it to D_NORMAL if it's still
unset.

PR: 243975
Submitted by: fehmi noyan isi
MFC after: 1 week