When using git difftool --tool=bc3
from Git-Bash I got a BC3 window for each file. But to see the next window I had to close the previous one.
I wanted to see all diffed files at the same time as tabs in a single BC3 window.
When using git difftool --tool=bc3
from Git-Bash I got a BC3 window for each file. But to see the next window I had to close the previous one.
I wanted to see all diffed files at the same time as tabs in a single BC3 window.
我在 StackOverflow 上找到了正确的提示:#17736427。
使用git difftool --dir-diff
(将 BC3 配置为 difftool)对我来说是可以的。
谁想使用它,可能会发现 BC3 开关/expandall
很有帮助。
我之前的解决方案是,递归调用 git-difftool 。
可能这个技巧对其他人有帮助。所以我想在这里分享。
像这样更改您的 git-config:
[difftool "bc3_all"]
cmd = "git difftool --tool=bc3_single \"$REMOTE\" &"
[difftool "bc3_single"]
cmd = "bcomp \"$REMOTE\" \"$LOCAL\""
我的第一次尝试是直接启动 BC3 作为后台进程:
[difftool "bc3"]
cmd = "bcomp \"$REMOTE\" \"$LOCAL\" &"
它不起作用,因为$LOCAL
通常是一个临时文件。
当 BC3 窗口出现时,该$LOCAL
文件已被删除。