dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Editing .patch files?

Re: Editing .patch files?

From: gl <>
Date: 2006-02-24


> 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.

Received on Fri Feb 24 18:14:10 2006

Page was last modified "Jan 10 2012" The Rockbox Crew