git-difftool

Git complains about no such file or directory when using difftool

痞子三分冷 提交于 2021-02-11 13:40:42
问题 I configured git to use kdiff3 but it seems to give me the following error: $ GIT_TRACE=1 git difftool 09:23:36.319531 git.c:419 trace: built-in: git difftool 09:23:36.321130 run-command.c:643 trace: run_command: GIT_EXTERNAL_DIFF=git-difftool--helper GIT_PAGER= git diff 09:23:36.322094 git.c:419 trace: built-in: git diff 09:23:36.340596 run-command.c:643 trace: run_command: GIT_DIFF_PATH_COUNTER=1 GIT_DIFF_PATH_TOTAL=3 git-difftool--helper init.el /tmp/LqOdEz_init.el

Git complains about no such file or directory when using difftool

我怕爱的太早我们不能终老 提交于 2021-02-11 13:39:34
问题 I configured git to use kdiff3 but it seems to give me the following error: $ GIT_TRACE=1 git difftool 09:23:36.319531 git.c:419 trace: built-in: git difftool 09:23:36.321130 run-command.c:643 trace: run_command: GIT_EXTERNAL_DIFF=git-difftool--helper GIT_PAGER= git diff 09:23:36.322094 git.c:419 trace: built-in: git diff 09:23:36.340596 run-command.c:643 trace: run_command: GIT_DIFF_PATH_COUNTER=1 GIT_DIFF_PATH_TOTAL=3 git-difftool--helper init.el /tmp/LqOdEz_init.el

When writing a git difftool, is there a way for the tool to know which file is being compared?

六月ゝ 毕业季﹏ 提交于 2020-07-22 10:58:31
问题 I tried writing a simple difftool for this question - Verify that Git commit only moves lines - and it works ... fine I guess, but there is one problem. When asking it to do a diff between two commits, like this: git difftool -t OnlyMovedLines HEAD~1 HEAD Then for each modified file, two temporary files gets created with the snapshots from each of the commits, and then the tool is invoked. This, however, means that the tool is unable to report which file is actually being diffed, as the

Configuring multiple git mergetool and difftool so that appropriate tool will be chosen based on extension

断了今生、忘了曾经 提交于 2020-01-25 03:50:10
问题 When I do git difftool, recursively it runs default difftool for all files. I wrote a script to choose appropriate difftool based on extension and I call like git difftool -t mytool in the script. difftool redirects all arguments to new call, which is good. However, it somehow redirects all file names as well. So basically, my script becomes useless since custom difftool is passed with all files that is changed. What I want to do is, limit difftool to one file, or at least call my diftool

Using OS X FileMerge/opendiff to view git differences, loading all files at once in the directory view

纵饮孤独 提交于 2019-12-25 14:29:49
问题 We are version controlling our project using git. Developing under OS X, we'd like to use the FileMerge application distributed with the development tools to display git generated differences: If we understood correctly, it is possible to configure its invocation through git difftool . Following advices from different sources, we added this in our global git configuration file: [diff] tool = opendiff It works well for "file by file" diffs. But we prefer to have a directory difference loaded

The diff tool in Visual Studio when using the Git Plugin

拜拜、爱过 提交于 2019-12-20 09:46:22
问题 Microsoft has released a Git plugin for Visual Studio 2012. I have found it to be excellent, but there doesn't seem to be any option to change the default Diff tool. Worse, I cannot do a diff at all on ascx codebehind files. It only shows a diff option for the main .ASCX file. How do you Diff the codebehind files when using the git plugin? Change the diff tool? 回答1: You have to change your local .gitconfig, rather than make the change through Visual Studio as you would with TFS https://gist

Git diff of branches or commits showing file list overview in visual difftool and then selectable single file diff

穿精又带淫゛_ 提交于 2019-12-14 02:55:39
问题 tl;dr: How can I get my custom difftool to open a directory/file view of a branch or commit diff so I can jump inside of my difftool in single file diffs and back to directory list to select the next pair of files? Using git and Beyond Compare 4. (Jumping back and forth from file list to file diff and back is partly a build in feature of the difftools). Details: I have been working myself into Git the last couple of month and it is a great tool. But I was wondering if there is a possibility

Git (2.22.0) difftool no longer passes through to git diff if diff.tool is unset

筅森魡賤 提交于 2019-12-08 08:12:54
问题 Per @VonC's answer in https://stackoverflow.com/a/56212234 in Git 2.22.0 (released 2019-06-08), a number of changes were made to the git difftool command regarding how its configuration is determined. However, unless I am missing something here, it appears that a regression in functionality has been introduced in this version. In previous versions, including 2.21.0, it has been possible to use git difftool without any configuration or CLI options, in which case it passes through to git diff .

Is git difftool on binaries possible? If so, how does one configure it?

和自甴很熟 提交于 2019-12-08 05:52:26
问题 I've been following guides like these here and here on how to diff binaries in git - more specifically .odt files and microsoft word files. They have allowed me to $git diff <commit> on .odt files and microsoft word files to display the difference in the terminal; however their methods don't seem to work with $git difftool <commit> on binary files, such as .odt files or .docx files. Ideally I would like to display the text diff of .odt files or .docx files in an external program such as

How to perform a 3-way visual diff on git?

蓝咒 提交于 2019-12-08 05:17:13
问题 I'd like to do a 3-way diff of a single file that exist in 2 different branches, that is, the last commit in each branch and also consider the common ancestor. I want to use an external tool that allows to do 3-way comparison. I was considering to use git difftool but as far as I could see it only allows comparing any 2 versions of a given file. I could use mergetool but that forces me to run git merge first so that, BASE, REMOTE and LOCAL variables are set. I don't want to run git merge. I