tests/histedit-helpers.sh
author Gregory Szorc <gregory.szorc@gmail.com>
Sun, 31 May 2015 17:41:35 -0700
changeset 25379 894bcdbb9e7a
parent 17085 35729bdd59b6
child 27350 890273343170
permissions -rw-r--r--
check-commit: make foo_bar naming regexp less greedy \s is equivalent to the character class [ \t\n\r\f\v]. Using \s+ in a regular expression against input with multiple lines may match across multiple lines. For the regexp in question, "\+\s+" would match "+\n " and similar sequences, leading to false positives for functions that were included in diff context, after a modified hunk.

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"
}