check-code: compile all patterns on initialisation
They where compiled once for every checked file (when calling finditer).
check-code: only fix patterns once
The patterns were fixed once for every file. Now only do it once when loading
the file.
commit: amending with --close-branch (
issue3445)
You can't close a branch that hasn't got a head.
newbranch + commit --close-branch must fail
newbranch + commit + commit --amend --close-branch must fail
You must not be allowed to close a branch that is not defined.
run-tests: when interrupted report time in failure message
When --time is specified, the interruption message of an interrupted test is
extended with the time the test has run
INTERRUPTED: /path/to/tests/test-example.t (after 513 seconds)