Bug 88427

Summary: Diff (1) error.
Product: Documentation Reporter: JImmie James <jimmiejaz>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description JImmie James 2005-11-03 02:40:17 UTC
man (1) diff says to use        diff -crN foo.orig foo >foo.diff  to create a diff patch, where it should be -urN (as told to me by dho on ##freebsd)

How-To-Repeat: Read the man (1) diff and on the website http://www.freebsd.org/cgi/man.cgi?query=diff&sektion=1
Comment 1 Giorgos Keramidas freebsd_committer freebsd_triage 2005-11-03 16:28:49 UTC
On 2005-11-03 02:32, Jimmie James <jimmiejaz@gmail.com> wrote:
> man (1) diff says to use diff -crN foo.orig foo >foo.diff to create
> a diff patch, where it should be -urN (as told to me by dho on
> ##freebsd)

Both ways are valid.  This is not a bug in the manpage.

It may be preferrable to use one of the two in some cases, but that's
definitely not something that we have to document as "The One True
Way" of generating patches.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2005-12-25 03:16:21 UTC
State Changed
From-To: open->closed

This appears to be one of those matters that is of personal preference.