|
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0 |
|
| #
9488de00 |
| 19-Aug-2018 |
Kyle Evans <[email protected]> |
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 t
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.
show more ...
|
| #
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 ...
|
| #
9977c7b5 |
| 27-Jul-2018 |
Xin LI <[email protected]> |
Improve --strip-trailing-cr handling:
- Advance ctold for f1 and ctnew for f2 - ungetc() if the character is unexpected - Don't break early when we hit the combination on one side
PR: 230049 Re
Improve --strip-trailing-cr handling:
- Advance ctold for f1 and ctnew for f2 - ungetc() if the character is unexpected - Don't break early when we hit the combination on one side
PR: 230049 Reported by: maskray <emacsray gmail com> Reviewed by: bapt, maskray MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D16451
show more ...
|
|
Revision tags: release/11.2.0 |
|
| #
7672a014 |
| 19-Jun-2018 |
Mariusz Zaborski <[email protected]> |
Convert `cap_enter() < 0 && errno != ENOSYS` to `caph_enter() < 0`.
No functional change intended.
|
| #
6fa5bf08 |
| 09-Jun-2018 |
Baptiste Daroussin <[email protected]> |
Isolate the pr(1) related code in its own source files
This keeps diffreg.c closer to what it is supposed to do: diffing regular files.
It also allows my code to get a proper license
|
| #
0118df5e |
| 13-Dec-2017 |
Baptiste Daroussin <[email protected]> |
Replace homemade equivalent of tolower(3) by towlower(3)
This will help in the futur making diff -i works with multibyte
|
| #
df57947f |
| 18-Nov-2017 |
Pedro F. Giffuni <[email protected]> |
spdx: initial adoption of licensing ID tags.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensou
spdx: initial adoption of licensing ID tags.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point.
Initially, only tag files that use BSD 4-Clause "Original" license.
RelNotes: yes Differential Revision: https://reviews.freebsd.org/D13133
show more ...
|
|
Revision tags: release/10.4.0, release/11.1.0 |
|
| #
4d8c5790 |
| 17-Jul-2017 |
Enji Cooper <[email protected]> |
Don't emit "diff: diff <options> arguments" when diffing files if -q is specified.
This improves compatibility with GNU diff.
Found by accident with `diff -Nrq /usr/tests /usr/tests.new | grep Kyua
Don't emit "diff: diff <options> arguments" when diffing files if -q is specified.
This improves compatibility with GNU diff.
Found by accident with `diff -Nrq /usr/tests /usr/tests.new | grep Kyuafile`.
MFC after: 2 months Relnotes: yes
show more ...
|
| #
7ef35d05 |
| 24-Apr-2017 |
Dimitry Andric <[email protected]> |
Fix the following warning from gcc 4.2 in usr.bin/diff:
usr.bin/diff/diffreg.c: In function 'change': usr.bin/diff/diffreg.c:1085: warning: 'i' may be used uninitialized in this function
This versi
Fix the following warning from gcc 4.2 in usr.bin/diff:
usr.bin/diff/diffreg.c: In function 'change': usr.bin/diff/diffreg.c:1085: warning: 'i' may be used uninitialized in this function
This version of gcc is not smart enough to see that 'i' cannot actually be used unitialized. However, the variable is confusingly re-used, so it is better to give it another name, and clearly initialize it before attempting to use it.
Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D10484
show more ...
|
| #
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 ...
|
| #
7752043c |
| 15-Apr-2017 |
Baptiste Daroussin <[email protected]> |
Clean up headers declaration
|
| #
385a67dc |
| 26-Mar-2017 |
Jilles Tjoelker <[email protected]> |
diff: Show nanoseconds in -u/-c header line.
Show nanoseconds in the -u/-c header line.
The present portability conditionals cannot handle the POSIX standard st_mtim, so remove them and uncondition
diff: Show nanoseconds in -u/-c header line.
Show nanoseconds in the -u/-c header line.
The present portability conditionals cannot handle the POSIX standard st_mtim, so remove them and unconditionally use st_mtim.
PR: 218018 Reported by: jbeich Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D10145
show more ...
|
| #
58cf4d86 |
| 26-Mar-2017 |
Jilles Tjoelker <[email protected]> |
diff: Fix mtime of file1 in -u/-c header line.
PR: 218018 Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D10140
|
| #
6b8059c4 |
| 22-Mar-2017 |
Baptiste Daroussin <[email protected]> |
Use MIN macros from sys/param.h
|
| #
42c88c41 |
| 22-Mar-2017 |
Baptiste Daroussin <[email protected]> |
Use MAX and MIN macros from sys/param.h
|
| #
5bbffb00 |
| 20-Mar-2017 |
Baptiste Daroussin <[email protected]> |
Cache tzdata when running under capsicum
PR: 217957 Reported by: tobik@
|
| #
78f6a0c1 |
| 13-Mar-2017 |
Baptiste Daroussin <[email protected]> |
Do not die if cap_rights_limit reports ENOSYS
Reported by: mmel
|
| #
ff807815 |
| 12-Mar-2017 |
Baptiste Daroussin <[email protected]> |
Readd codes that creates a tmp file for diffing stdout or devices
|
| #
d5b187ae |
| 12-Mar-2017 |
Baptiste Daroussin <[email protected]> |
Fix building with recent gcc
Reported by: lwhsu, ngie
|
| #
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 ...
|