Rockbox mail archiveSubject: Re: Editing .patch files?
Re: Editing .patch files?
From: gl <gl_at_ntlworld.com>
Thanks for the advice and links guys, I'll report back if I find anything
-- gl ----- Original Message ----- From: "Jerry Van Baren" <email@example.com> To: "Rockbox development" <firstname.lastname@example.org> Sent: Friday, February 24, 2006 5:34 PM Subject: Re: Editing .patch files? > gl wrote: >> >> Hi, >> >>> Each changed file has an obvious header. If you don't intend to change >>> that file, simply delete the section to the next file header. >> >> That part I figured out : ). >> >>> Within a file, each change section has a flag showing the starting line >>> and number of lines that were removed in the section and then the >>> starting line and number of lines that were added. >>> >>> Example: >>> @@ -26,6 +26,8 @@ >>> >>> The above example, starting at line 26 I "deleted" 6 lines and then >>> added 8 lines (actually, I changed 6 lines and then *added 6 lines*). >> >> 'added 2 lines' right? >> >> Keeping track of which lines were removed and which added seems >> confusing, but I'm sure I could get the hang of it. Worse though is that >> any line number changes need to ripple downwards. So if I delete a hunk >> part-way through, all the other hunks (from the same source file) would >> need to be adjusted accordingly, and on large files with large changes >> this gets nightmarish fast. >> -- >> gl > > Yup, my bad. There are patchfile editor programs that I've seen but not > used. I've always either hand edited my patch files or created a > different subdirectory tree for the two (or more) patches and segregated > my patches (sometimes after the fact which can be difficult as you so > rightly point out :-( ). > > This looks interesting, but probably doesn't help you today :-/ > http://www.gerv.net/software/patch-maker/ > (http://books.mozdev.org/html/mozilla-app-b-sect-2.html) > > Emacs mode: > http://www.linuxgazette.com/issue27/marsden.html > > vim built in support: > vimdiff > > Graphical diff creation and editing tools: > http://meld.sourceforge.net/ > http://home.catv.ne.jp/pp/ginoue/software/gtkdiff/index-e.html > > Oh, oh, looks like you are running Windows for your email: > X-Mailer: Microsoft Outlook Express 6.00.2900.2670 > X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 > Some of the above run on Windows but everything will be more difficult. > > gvb >Received on Fri Feb 24 18:38:05 2006
Page was last modified "Jan 10 2012" The Rockbox Crew