Configure differerent names for git difftool labels (directory names) 'left' and 'right'?

124 views Asked by At

Using difftool with meld works well, yet the headers meld shows for the two sides are 'left' and 'right'. For git diff itself there are the options --src-prefix and --dst-prefix to rename the 'a' and 'b' prefix, but it has no influence on difftool.

I am using the configuration

[difftool]
  prompt = false
[difftool "meld"]
  cmd = meld "$LOCAL" "$REMOTE"

and run

git difftool --dir-diff some-branch

Is there a way to get a branch name or at least a commit hash instead of the 'left' and 'right' labels?

0

There are 0 answers