Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I abort git difftool when multiple files are being compared?

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?

like image 974
Alexander Rechsteiner Avatar asked Oct 30 '22 20:10

Alexander Rechsteiner


1 Answers

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

like image 93
Ramith Jayatilleka Avatar answered Nov 12 '22 22:11

Ramith Jayatilleka