Bug 82705

Summary: [PATCH] porters handbook - 4.6 patching - add note for context lines >=3
Product: Documentation Reporter: Woody Carey <woodycarey>
Component: Books & ArticlesAssignee: Pav Lucistnik <pav>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Woody Carey 2005-06-27 21:00:36 UTC
I would recommend adding a paragraph to   http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/slow-patch.html

which mentions that in order to get 'patch' to *not* prompt for file to patch, you should specify at least 3 or four lines of context for context or unified context diffs when diffing:

diff -C 4 foo.c.original foo.c > patch-foo.c
diff -U 4 foo.c.original foo.c >patch-foo.c

Fix: Add paragraph:

In order to get patch to run non-interactively, you should create your patches with more lines of context than the default:
How-To-Repeat: Try to be a new porter and have this bite you!
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2005-07-15 00:43:42 UTC
State Changed
From-To: open->feedback

This looks bogus to me - it will never prompt if you generate the patch 
from the WRKDIR directory, and it will prompt every time if you generate it 
from elsewhere. Amount of context lines have nothing to do with this. 

Or not? 


Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2005-07-15 00:43:42 UTC
Responsible Changed
From-To: freebsd-doc->pav

Poke
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2005-07-15 20:50:01 UTC
State Changed
From-To: feedback->closed

Reached an agreement with a submitter to close this PR without action.