aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/diff/diffreg.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement a basic --changed-group-formatBaptiste Daroussin2017-04-201-6/+36
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=317194
* Clean up headers declarationBaptiste Daroussin2017-04-151-0/+1
| | | | Notes: svn path=/head/; revision=316959
* diff: Show nanoseconds in -u/-c header line.Jilles Tjoelker2017-03-261-14/+4
| | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=316002
* diff: Fix mtime of file1 in -u/-c header line.Jilles Tjoelker2017-03-261-3/+3
| | | | | | | | | PR: 218018 Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D10140 Notes: svn path=/head/; revision=315985
* Use MIN macros from sys/param.hBaptiste Daroussin2017-03-221-1/+1
| | | | Notes: svn path=/head/; revision=315747
* Use MAX and MIN macros from sys/param.hBaptiste Daroussin2017-03-221-12/+9
| | | | Notes: svn path=/head/; revision=315743
* Cache tzdata when running under capsicumBaptiste Daroussin2017-03-201-0/+1
| | | | | | | | PR: 217957 Reported by: tobik@ Notes: svn path=/head/; revision=315649
* Do not die if cap_rights_limit reports ENOSYSBaptiste Daroussin2017-03-131-2/+4
| | | | | | | Reported by: mmel Notes: svn path=/head/; revision=315197
* Readd codes that creates a tmp file for diffing stdout or devicesBaptiste Daroussin2017-03-121-2/+48
| | | | Notes: svn path=/head/; revision=315180
* Fix building with recent gccBaptiste Daroussin2017-03-121-3/+5
| | | | | | | Reported by: lwhsu, ngie Notes: svn path=/head/; revision=315107
* Import diff from OpenBSD and remove GNU diffBaptiste Daroussin2017-03-111-0/+1603
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 Notes: svn path=/head/; revision=315051