I’ve got vim setup as my external diff tool:
[diff]
external = git_diff_wrapper
#!/bin/sh
vimdiff "$2" "$5"
Say I have 300 files that have been modified; via bash, I type “git diff”. It launches 300 vimdiffs sequentially, how do I abort it?
If stopping the process is not enough, killing the shell itself (in which you launched the
git diff) might be more effective.See also Git Diff with Vimdiff
But if you still want the modified
git diff, agit statusmight help before launching it 😉And you can setup a function to get the old
git diffbehavior if needed: