tests/histedit-helpers.sh
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Mon, 31 Jul 2017 13:16:34 +0900
branchstable
changeset 33611 798f7beadbc9
parent 27350 890273343170
permissions -rw-r--r--
tests: use pdiff instead of diff for portability "diff" command might cause redundant message, "No differences encountered" on Solaris for example. But suppressing option like "-q" isn't portable, because POSIX specification doesn't define it. pdiff script was introduced by b59ef0c21405 to stabilize output of standard diff command on each platforms.

fixbundle() {
    grep -v 'saving bundle' | grep -v 'saved backup' | \
        grep -v added | grep -v adding | \
        grep -v "unable to find 'e' for patching" | \
        grep -v "e: No such file or directory" | \
    cat
}