Simplify implementation of commands that open a git repository viewer