git-gui: Avoid unnecessary global statements when possible