Beyond compare windows 109/20/2023 With that change, Beyond Compare can read the temp folder in Windows. If you just had $LOCAL and $REMOTE, the GUI tool doesn’t understand that, since it is still running in the context of Windows. gitconfig looks about the same as you would expect, but there is a some extra echoing and seding going on. However, the GUI tool can’t follow the symlink, so the diff will be read-only. Normally, this is really handy because you could use the diff tool directly to change the right side to tweak something you missed. If this is not set, it will try to create symlinks for the right side. bashrc is the –no-symlinks flag of git difftool. The other important part of the alias in. We want to see those files from the Windows file system, so we use the AppData Local Temp folder (accessible via /mnt). We can override the location of /tmp by setting the TMPDIR environment variable. Git difftool generates a set of left and right files in a /tmp for use as $LOCAL and $REMOTE in the difftool cmd. Now in WSL, instead of running: git difftool Path = /mnt/c/Program Files (x86)/Beyond Compare 3/BCompare.exeĬmd = \"/mnt/c/Program Files (x86)/Beyond Compare 3/BCompare.exe\" -expandall \"`echo $LOCAL | sed 's_/mnt/c_C:_'`\" \"`echo $REMOTE | sed 's_/mnt/c_C:_'`\" Let’s edit a couple files, and then we’ll talk about what they’re doing.Įdit your WSL ~/.bashrc file to have these lines toward the bottom of the file (obviously replacing “greg” with your username): export TMPDIR='/mnt/c/Users/greg/AppData/Local/Temp'Īlias gdiff='git difftool -y -dir-diff -no-symlinks'Įdit your WSL ~/.gitconfig file to have these configuration settings (adapting the EXE with your favorite diff tool): The TLDR of it is that we’ll bridge the gap of generating and viewing the diff using your Windows temp folder. We also can’t exactly have a Windows app read the WSL filesystem, because there can be some side effects that can ruin the WSL. Normally, git difftool will run meld or something that is GUI-based. In a Bash prompt: $ sudo apt install git A Little Misdirection Download Beyond Compare for PC Trial version In English V 4.3 3.8 (182) Security Status Beyond Compare free download. Visual diff tool (I’m using Beyond Compare)įirst, the easy part: install git on WSL. Beyond Compare is a proprietary data comparison utility.What’s a guy to do?Īh, but the Creators Update of WSL added the ability for WSL to call Windows executables. Granted, I can read a git diff, but using something like Beyond Compare with git difftool speeds up my comprehension.īut WSL is not GUI friendly (at the moment). However, there is one area where I still like a GUI: visual diffs. Getting that up and running was pretty nice. Since I’m a git command line kind of guy, being able to sudo apt install git was a slice of heaven on a Windows machine. Since the Windows 10 Creators Update just dropped, it came with a WSL of Ubuntu 16.04. Part of that was using WSL (Windows Subsystem for Linux) to set up git. As I was drafting some new blog posts, I was exploring some stuff on the technical side.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |