git/local: split out revert/branch to separate file