diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-02-22 22:35:12 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-02-22 22:35:12 +0000 |
commit | 17f9a845b52ea5e9b78834ac3dae0bd92a2cebb9 (patch) | |
tree | 9a381ccd89185c6eb2a59de660738d686c83aaee /usr.bin/diff3 | |
parent | a8a9c8f86716e13464ea7c33ba33006e4f85ad5a (diff) |
sort options + sync usage();
Diffstat (limited to 'usr.bin/diff3')
-rw-r--r-- | usr.bin/diff3/diff3.1 | 34 | ||||
-rw-r--r-- | usr.bin/diff3/diff3.ksh | 4 |
2 files changed, 19 insertions, 19 deletions
diff --git a/usr.bin/diff3/diff3.1 b/usr.bin/diff3/diff3.1 index 2f16269e9dc..cdb626ac63d 100644 --- a/usr.bin/diff3/diff3.1 +++ b/usr.bin/diff3/diff3.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: diff3.1,v 1.5 2005/12/27 12:48:56 jmc Exp $ +.\" $OpenBSD: diff3.1,v 1.6 2006/02/22 22:35:11 jmc Exp $ .\" .\" Copyright (c) 1990, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -37,7 +37,7 @@ .Nd 3-way differential file comparison .Sh SYNOPSIS .Nm diff3 -.Op Fl aexEX3 +.Op Fl 3aEeXx .Ar file1 file2 file3 .Sh DESCRIPTION The @@ -59,8 +59,23 @@ new versions. .Pp The options are as follows: .Bl -tag -width "-E, -X" +.It Fl 3 +Produces an output script suitable for +.Xr ed 1 +with changes +specific only to +.Ar file3 . .It Fl a Treat all files as ASCII. +.It Fl E , X +Similar to +.Fl e +and +.Fl x , +respectively, but treat overlapping changes (i.e., changes that would +be noted with ==== in the normal listing) differently. +The overlapping lines from both files will be inserted by the edit script, +bracketed by "<<<<<<" and ">>>>>>" lines. .It Fl e Produces output in a form suitable as an input script for the .Xr ed 1 @@ -88,21 +103,6 @@ Produces an output script suitable for .Xr ed 1 with changes specific only to all three versions. -.It Fl 3 -Produces an output script suitable for -.Xr ed 1 -with changes -specific only to -.Ar file3 . -.It Fl E , X -Similar to -.Fl e -and -.Fl x , -respectively, but treat overlapping changes (i.e., changes that would -be noted with ==== in the normal listing) differently. -The overlapping lines from both files will be inserted by the edit script, -bracketed by "<<<<<<" and ">>>>>>" lines. .El .Pp The diff --git a/usr.bin/diff3/diff3.ksh b/usr.bin/diff3/diff3.ksh index 65ac1b92575..2d78adb0aed 100644 --- a/usr.bin/diff3/diff3.ksh +++ b/usr.bin/diff3/diff3.ksh @@ -1,6 +1,6 @@ #!/bin/ksh - # -# $OpenBSD: diff3.ksh,v 1.3 2006/01/28 07:27:38 tedu Exp $ +# $OpenBSD: diff3.ksh,v 1.4 2006/02/22 22:35:11 jmc Exp $ # # Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com> # @@ -26,7 +26,7 @@ OPTIND=1 # force getopts to reset itself export PATH=/bin:/usr/bin diff3prog=/usr/libexec/diff3prog -USAGE="usage: diff3 [-aexEX3] file1 file2 file3" +USAGE="usage: diff3 [-3aEeXx] file1 file2 file3" # Pull out any command line flags (some for diff, some for diff3) dflags= |