Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: question about line numbers in patches

Re: question about line numbers in patches

From: Greg Haerr <greg_at_censoft.com>
Date: Sat, 29 Dec 2007 17:32:57 -0700

: Also why is there a a - and a + sign used before the numbers.

The - and + reference the two files being diffed, and match
the upcoming patch lines which are preceded by - and +.
In your case, the - file references the first file and the +
references the second file in the diff.

: @@ -41,6 +41,8.

This means that starting at line 41, six lines are to
be replaced by 8 lines. The detail is in the following
lines. Lines with - are to be removed, lines with +
are to be added, and other lines remain the same.

Regards,

Greg
Received on 2007-12-30


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