How to suppress the Run confirmation $ diffftool '[Y / n]: "iff (if and only if) a specific file is passed to git diffftool?

When merging branches or reviewing all changes in an edition using git difftool might make sense to ask Launch '$difftool' [Y/n]: before each instance of the tool, to make a long chain of invokations interrupted with SIGINT . When a particular file is passed as an argument, it is not AFAIK. How to suppress this question only in the latter case (because it makes sense to ask him about the first)?

I am using 2.1.0 on Ubuntu 14.10.

EDIT : after viewing Why doesn't git difftool open the tool directly? I am modifying the question to find out how to deal with the fact that it makes sense to ask if there is more than one file for diff.

+5
source share
1 answer

I found this below from stackoverflow. Hope this helps.

  man git-difftool OPTIONS -y, --no-prompt Do not prompt before launching a diff tool. 

or set it to the most global conf

 git config --global --add difftool.prompt false 

Why doesn't git difftool open the tool directly?

+12
source

Source: https://habr.com/ru/post/1206187/


All Articles