Description
Setup
- Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
git version 2.25.0.windows.1 64 bit
$ git --version --build-options
** git version 2.25.0.windows.1
cpu: x86_64
built from commit: 7c71c859c97853ed057da5cbab12f3c13b5554df
sizeof-long: 4
sizeof-size_t: 8 **
- Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
10 64 bit
$ cmd.exe /c ver
** Microsoft Windows [Version 10.0.18362.592]
(c) 2019 Microsoft Corporation. All rights reserved. **
- What options did you set as part of the installation? Or did you choose the
defaults?
Defaults except for using notepad++ and a few that are irrelevant to this issue
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt
** Editor Option: Notepad++
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: WinSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
**
- Any other interesting things about your environment that might be related
to the issue you're seeing?
** I'm using Meld as my difftool and mergetool. Version 3.18.3. I could not get 3.20.1 to install and run properly. **
Details
- Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
** MINGW64 **
- What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.
** git difftool
git difftool --dir-diff **
- What did you expect to occur after running these commands?
** Git difftool will open the current branch on the left and the actual diff files on the right. This way I can modify files in Meld and save them to the actual location that git is running out of. **
- What actually happened instead?
** When running git difftool, this works fine. When running git difftool --dir-diff, it puts everything into a temp directory and compares them out of there instead of the working directory. So after I modify files, saving in Meld will save to the temporary directory and the changes will be lost once closing Meld. Is it intentional that using --dir-diff even on the current directory copies to a temporary directory to compare? I'm not sure if this is something that has changed in an update or if it has always been this way.
Example of comparing a file with just difftool:
Example using difftool --dir-diff:
How would I got about using the --dir-diff command with my working directory?**
- If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?
** Not a specific repo. **