branch, commit, name-rev: ease up boolean conditions