summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-07-29 18:57:39 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-07-29 18:57:39 +0000
commitcef63677078bb4e3f9bad7e15cdb6c716e5f3a92 (patch)
treed2d1c04179c07588d24a08d7d18ef5875067f4bd /gnu
parent4eceeba1ed72b3a953413221656c52fe96b601b9 (diff)
downloadFreeBSD-src-cef63677078bb4e3f9bad7e15cdb6c716e5f3a92.zip
FreeBSD-src-cef63677078bb4e3f9bad7e15cdb6c716e5f3a92.tar.gz
Add an example for folks who can never remember how to generate a
recursive diff for use with send-pr(1). PR: 12440 Requested by: David Kelly <dkelly@hiwaay.net>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/diff/diff.114
1 files changed, 14 insertions, 0 deletions
diff --git a/gnu/usr.bin/diff/diff.1 b/gnu/usr.bin/diff/diff.1
index 4acd3c9..fd60bd8 100644
--- a/gnu/usr.bin/diff/diff.1
+++ b/gnu/usr.bin/diff/diff.1
@@ -463,6 +463,20 @@ match any pattern contained in
.TP
.B \-y
Use the side by side output format.
+.SH EXAMPLES
+To save to a file some changes that you have made to your local source
+tree (possibly including new files), which you would like to show to others
+(perhaps using the
+.B send-pr(1)
+program), you could type
+.sp
+diff -crN foo.orig foo >foo.diff
+.sp
+where
+.I foo.orig
+and
+.I foo
+might be directory hierarchies or single files.
.SH SEE ALSO
cmp(1), comm(1), diff3(1), ed(1), patch(1), pr(1), sdiff(1).
.SH DIAGNOSTICS
OpenPOWER on IntegriCloud