add a bit of context to upgrade SQL hints
authorGalen Charlton <gmc@esilibrary.com>
Tue, 17 May 2011 19:09:51 +0000 (15:09 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 17 May 2011 19:09:51 +0000 (15:09 -0400)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>

Open-ILS/src/sql/Pg/make-db-patch.pl

index 30993b8..663b901 100755 (executable)
@@ -97,7 +97,7 @@ if (@deprecates or @supersedes) {
 }
 
 my $patch_init_contents;
-$patch_init_contents = `git diff $patch_from -- ./[0-9][0-9][0-9].*.sql | sed -e '/^[^+-]/d' -e '/^\\(--- a\\|+++ b\\)/d' -e 's/^+//'` if ($patch_from ne '');
+$patch_init_contents = `git diff $patch_from -- ./[0-9][0-9][0-9].*.sql | sed -e '/^[^+\@-]/d' -e '/^\\(--- a\\|+++ b\\)/d' -e 's/^+//'` if ($patch_from ne '');
 
 print OUT <<_FOOTER_;