Why does "git difftool" not open the tool directly?

GitDiffDifftool

Git Problem Overview


I configured git like this:

git config --global diff.tool meld

When I run:

git difftool

I get the following message:

Viewing: 'hello.txt'
Hit return to launch 'meld': 

Then, if I press Enter, meld will launch.

How can I disable this message, so that meld will be launched straight away after typing git difftool?

Git Solutions


Solution 1 - Git

There's also an option:

difftool.prompt
  Prompt before each invocation of the diff tool.

The following command turns off the prompt globally (for all repos):

git config --global difftool.prompt false

Which is like writing in ~/.gitconfig:
(or in %HOMEDRIVE%%HOMEPATH%\.gitconfig)

[difftool]
  prompt = false

Solution 2 - Git

man git-difftool

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMisha MoroshkoView Question on Stackoverflow
Solution 1 - GitZJRView Answer on Stackoverflow
Solution 2 - GitBill DoorView Answer on Stackoverflow