diff options
author | mike <mike@FreeBSD.org> | 2002-02-08 02:05:32 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-02-08 02:05:32 +0000 |
commit | d3aa0af1fe66d07ce4bc93adaa9f46fc34eaf0bd (patch) | |
tree | b1e50f692cc451f2199bda5131fc6c6c34af8590 /gnu/usr.bin/patch/patch.1 | |
parent | 614541205860c09d40f76b2e7d9e9b892337a318 (diff) | |
download | FreeBSD-src-d3aa0af1fe66d07ce4bc93adaa9f46fc34eaf0bd.zip FreeBSD-src-d3aa0af1fe66d07ce4bc93adaa9f46fc34eaf0bd.tar.gz |
Add -i option (SUSv3) to patch(1). This allows one to specify a
patch file on command line instead of stdin.
Submitted by: Joseph Mallett <jmallett@xMach.org>
MFC after: 1 month
Diffstat (limited to 'gnu/usr.bin/patch/patch.1')
-rw-r--r-- | gnu/usr.bin/patch/patch.1 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/usr.bin/patch/patch.1 b/gnu/usr.bin/patch/patch.1 index bf21ccf..4781369 100644 --- a/gnu/usr.bin/patch/patch.1 +++ b/gnu/usr.bin/patch/patch.1 @@ -116,6 +116,12 @@ option; if that file already exists, it is backed up first. If .I patchfile is omitted, or is a hyphen, the patch will be read from standard input. +If a +\fB\-i\fP +argument is specified, the filename following it will be used, instead of +standard input. You may specify only one +\fB\-i\fP +directive. .PP Upon startup, patch will attempt to determine the type of the diff listing, unless over-ruled by a @@ -320,6 +326,11 @@ Note that a larger fuzz factor increases the odds of a faulty patch. The default fuzz factor is 2, and it may not be set to more than the number of lines of context in the context diff, ordinarily 3. .TP 5 +.B "\-i patchfile" +tells +.I patch +to apply \fBpatchfile\fP instead of stdin. +.TP 5 .B "\-I, \-\-index-first" forces .I patch @@ -453,7 +464,7 @@ causes .I patch to print out its revision header and patch level. .TP 5 -.B "\-V method, \-\-version\-\-control=method" +.B "\-V method, \-\-version\-control=method" causes .B method to be interpreted as a method for creating |