X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Ftests%2Fquilt;h=0462f1a8bf867cd976c10b19e0ca4c9f8e181516;hb=7c24fc5496b3ad3128525e6287362e94ebb279c3;hp=e11e1ad6bf9d2eda869460d8d9b013186853f277;hpb=e494013b5146a4ac0012cea5d5b1ca41a9712529;p=dgit.git diff --git a/tests/tests/quilt b/tests/tests/quilt index e11e1ad6..0462f1a8 100755 --- a/tests/tests/quilt +++ b/tests/tests/quilt @@ -40,16 +40,57 @@ git merge branch iteration diff <../this.cmp + # normalise + perl -i~$compare~ -0777 -pe ' + s/\n+$//; $_ .= "\n"; + s/^(?:committer|parent|tree) .*\n//gm; + s/\n+(\(cherry picked from .*\)\n)\n*/\n\n/m + and s/$/$1/; + s/\n+$//; $_ .= "\n"; + ' ../this.cmp + if test -f ../last.cmp; then + diff -u ../last.cmp ../this.cmp + fi + mv ../this.cmp ../last.cmp +done + echo ok.