|
Revision tags: release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0 |
|
| #
c5820184 |
| 27-Jan-2021 |
Baptiste Daroussin <[email protected]> |
diff: remove stalled entries in headers
(cherry picked from commit 931ad51808a650fd28be27210f25ba05d8e71199)
|
| #
3728c4d3 |
| 25-Jan-2021 |
Jamie Landeg-Jones <[email protected]> |
diff: fix incorrectly displaying files as duplicates
When diff hits certain access errors, function diffreg() shows the error message, and then returns to the calling function, which calls print_sta
diff: fix incorrectly displaying files as duplicates
When diff hits certain access errors, function diffreg() shows the error message, and then returns to the calling function, which calls print_status() with the return value.
However, in these cases, the return value isn't changed from the initial default value of D_SAME.
Normally, print_status() with a value of D_SAME does nothing, so this works out ok, however, if the "-s" flag is set, a message is displayed showing identicality:
case D_SAME: if (sflag) printf("Files %s%s and %s%s are identical\n", path1, entry, path2, entry); break;
This then produces such results as:
% diff -s /COPYRIGHT /var/run/rpcbind.sock diff: /var/run/rpcbind.sock: Operation not supported Files /COPYRIGHT and /var/run/rpcbind.sock are identical
% diff -s /COPYRIGHT /etc/master.passwd diff: /etc/master.passwd: Permission denied Files /COPYRIGHT and /etc/master.passwd are identical
Create a D_ERROR status which is returned in such cases, and print_status() then deals with that status seperately from D_SAME
PR: 252614 MFC after: 1 week
(cherry picked from commit fefb3c46a80fdde6f307e73a2b5b5aed806df1ce)
show more ...
|
|
Revision tags: release/12.2.0, release/11.4.0 |
|
| #
db9cccfb |
| 20-Apr-2020 |
Kyle Evans <[email protected]> |
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 th
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
show more ...
|
| #
64793e74 |
| 07-Feb-2020 |
Baptiste Daroussin <[email protected]> |
diff: implement -y (--side-by-side) along with -W and --suppress-common-lines
PR: 219933 Submitted by: fehmi noyan isi <[email protected]> MFC after: 3 weeks
|
|
Revision tags: release/12.1.0, release/11.3.0, release/12.0.0 |
|
| #
e68edb8c |
| 19-Aug-2018 |
Kyle Evans <[email protected]> |
diff(1): Implement -B/--ignore-blank-lines
As noted by cem in r338035, coccinelle invokes diff(1) with the -B flag. This was not previously implemented here, so one was forced to create a link for G
diff(1): Implement -B/--ignore-blank-lines
As noted by cem in r338035, coccinelle invokes diff(1) with the -B flag. This was not previously implemented here, so one was forced to create a link for GNU diff to /usr/local/bin/diff
Implement the -B flag and add some primitive tests for it. It is implemented in the same fashion that -I is implemented; each chunk's lines are scanned, and if a non-blank line is encountered then the chunk will be output. Otherwise, it's skipped.
MFC after: 2 weeks
show more ...
|
|
Revision tags: release/11.2.0, release/10.4.0, release/11.1.0 |
|
| #
fddcb7b8 |
| 20-Apr-2017 |
Baptiste Daroussin <[email protected]> |
Implement a basic --changed-group-format
etcupdate(8) requires that option, while GNU diff supports many more variation of that options, their behaviour beside the simple verion implemented here are
Implement a basic --changed-group-format
etcupdate(8) requires that option, while GNU diff supports many more variation of that options, their behaviour beside the simple verion implemented here are quite inconsistent as such I do not plan to implement those.
The only special keyword supported by this implementation are: %< and %> %= is not implemented as the documentation of GNU diff says: common lines, but it actually when tested print the changes from the first file
show more ...
|
| #
3bbe3f67 |
| 11-Mar-2017 |
Baptiste Daroussin <[email protected]> |
Import diff from OpenBSD and remove GNU diff
Some of the modifications from the previous summer of code has been integrated Modification for compatibility with GNU diff output has been added
Main d
Import diff from OpenBSD and remove GNU diff
Some of the modifications from the previous summer of code has been integrated Modification for compatibility with GNU diff output has been added
Main difference with OpenBSD: Implement multiple GNU diff options: * --ignore-file-name-case * --no-ignore-file-name-case * --normal * --tabsize * --strip-trailing-cr Make diff -p compatible with GNU diff Implement diff -l Make diff -r compatible with GNU diff
Capsicumize diffing 2 regular files Add a simple test suite
Approved by: AsiaBSDcon devsummit Obtained from: OpenBSD, GSoC Relnotes: yes
show more ...
|