From: Wayne Davison Date: Fri, 16 Nov 2007 15:22:02 +0000 (-0800) Subject: Make sure we process a parent patch before a dependent patch. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/97f0421523521ad2e0ff7b14eb38b854a0b9e0a0 Make sure we process a parent patch before a dependent patch. --- diff --git a/support/patch-update b/support/patch-update index 20fbcab8..c4289820 100755 --- a/support/patch-update +++ b/support/patch-update @@ -45,8 +45,58 @@ while () { } close PIPE; +my(%parent, %description); foreach my $patch (@patches) { + my $branch = ($local_patch{$patch} ? '' : 'origin/') . "patch/$patch"; + open(PIPE, '-|', 'git-diff', "master...$branch", '--', "PATCH.$patch") or die $!; + while () { + last if /^@@ /; + } + my $desc = ''; + while () { + next if /^-/; # huh?? + s/^.//; + if (m#patch -p1 ', "patches/$patch.diff") or die $!; - - while () { - if (m#patch -p1