git-gui: Reimplement and enhance auto-selection of diffs.