5

I've made a huge mistake.

I've configured git difftool to use vimdiff, and then I've executed a command that compares the entire repository:

git difftool tag1 tag2

Now the difftool launches vim in diff mode for each file that has changed. When I close vim, it is launched again with the next pair of files. In general this is what I want, but can I abort this process somehow if there are too many files in the queue? I know I can close the terminal, but is there a better way?

Alexander Rechsteiner
  • 5,694
  • 5
  • 34
  • 47
  • Possible duplicate of [How do you cancel an external git diff?](https://stackoverflow.com/questions/2786619/how-do-you-cancel-an-external-git-diff) (Which has a better solution, IMO.) – Brian McCutchon May 25 '18 at 21:31

1 Answers1

2

Run this: git config --global difftool.prompt true. That will prompt you for each pair of files it opens.

Ramith Jayatilleka
  • 2,132
  • 16
  • 25