3

I use meld as my git difftool. Often when comparing my current state against a particular branch (for example) like this:

git difftool -d branchname

Unless it's obvious from the code state, I have a hard time figuring out which is my current state, and which is the branch I'm comparing against, as they are both labeled with tmp directories. Is there a way to instruct git to instruct meld to add a more user-friendly title to the left and right panels? (e.g. "branchname" and "HEAD")? I'm up for a little hacking if necessary.

Spacemoose
  • 3,856
  • 1
  • 27
  • 48

1 Answers1

1

The directories are created by git. Meld just compare the directory given to it. You can create a PR to change this.

Source:

strbuf_addf(&ldir, "%s/left/", tmpdir);
strbuf_addf(&rdir, "%s/right/", tmpdir);
Smart Manoj
  • 5,230
  • 4
  • 34
  • 59