show-branch --reflog: tighten input validation.