summaryrefslogtreecommitdiff
path: root/usr.bin/patch/patch.1
AgeCommit message (Collapse)Author
2023-08-16Remove $FreeBSD$: one-line nroff patternWarner Losh
Remove /^\.\\"\s*\$FreeBSD\$$\n/
2020-12-19patch(1): Fix a few mandoc related issuesGordon Bergling
- no blank before trailing delimiter MFC after: 1 week Notes: svn path=/head/; revision=368807
2019-11-04patch(1): give /dev/null patches special treatmentKyle Evans
We have a bad habit of duplicating contents of files that are sourced from /dev/null and applied more than once... take the more sane (in most ways) GNU route and complain if the file exists and offer reversal options. This still falls short a little bit as selecting "don't reverse, apply anyway" will still give you duplicated file contents. There's probably other issues as well, but awareness is the first step to happiness. MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D21535 Notes: svn path=/head/; revision=354328
2015-08-15Remove automatic checkout feature.Xin LI
Obtained from: DragonFly via OpenBSD Relnotes: yes MFC: never Notes: svn path=/head/; revision=286795
2015-07-21patch(1): Add -Vnone option to disable backup filesConrad Meyer
Differential Revision: https://reviews.freebsd.org/D3146 Reviewed by: pfg Approved by: markj (mentor) MFC after: 1 week Relnotes: yes Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=285772
2014-06-15patch: add dry-run alias for compatibility with other implementations.Pedro F. Giffuni
Other implementations of patch(1), including GNU patch and "svn patch" have a --dry-run option which does the same as our -C or --check option. Add a new alias to make our implementation more compatible. MFC after: 1 week Notes: svn path=/head/; revision=267512
2014-06-12Avoid zeroing during allocation.Pedro F. Giffuni
This change reverts a change from OpenBSD which made use of calloc, and therefore wasted time initializing arrays that will later be realloc'ed. Consistently use FreeBSD's reallocf(). While here also merge the changes from OpenBSD's manpage patch.1 Rev 1.27: "patch was moved from user portability (UP) to base in issue 7 and is no longer optional" MFC after: 1 week Notes: svn path=/head/; revision=267426
2013-04-11Remove contractions.Joel Dahl
Notes: svn path=/head/; revision=249373
2013-01-29 - Refresh code with latest OpenBSD revisions.Xin LI
- Remove $DragonFly$ tags as they are using git nowadays and VCS tags will not help merging. - Other changes to Copyright headers to make them consistent with other source code, we intend to fork from this point. Reviewed by: pfg Notes: svn path=/head/; revision=246091
2013-01-29- Add a BSD-licensed patch, ported by Pedro F. Giffuni (pfg) fromGabor Kovesdan
DragonflyBSD and install it as bsdpatch. WITH_BSD_PATCH makes it default and installs GNU patch as gnupatch. Submitted by: pfg Obtained from: The DragonflyBSD Project Notes: svn path=/head/; revision=246074
1997-07-13kill the undeadPeter Wemm
Notes: svn path=/head/; revision=27369
1997-07-06Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail,Bruce Evans
pascal and vmstat.sparc. All changed files on the vendor branch should already have been imported. Notes: svn path=/vendor/CSRG/dist/; revision=27241