git-gui: Refactor single_commit to a proc.