如何在单个Bcomp3窗口中打开多个文件的git difftool? [英] How to open git difftool for multiple files in a single Bcomp3 window?
问题描述
git difftool --tool = bc3
时,我为每个文件获得了一个BC3窗口。但要看到下一个窗口,我必须关闭前一个窗口。 我想在同一时间看到所有差异文件
在单个BC3窗口中作为选项卡。我在StackOverflow上找到了正确的提示:#17736427。
使用 git difftool --dir-diff
(将BC3配置为difftool)对我来说可以。
谁想要使用这个,可能会发现BC3开关 / expandall
有帮助。
我之前的解决方案是,要调用git -difftool 递归地。
可能这个技巧对别人有帮助。所以我想在这里分享它。
像这样改变你的git-config:
$ b
[difftoolbc3_all]
cmd =git difftool --tool = bc3_single \$ REMOTE \&
[difftoolbc3_single]
cmd =bcomp \$ REMOTE \\$ LOCAL \
我的第一个尝试是直接启动BC3作为后台进程:
[difftoolbc3]
cmd =bcomp \$ REMOTE \\$ LOCAL \&
,因为 $ LOCAL
通常是一个临时文件。
当BC3窗口出现时, $ LOCAL
文件已被删除。
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.
I found the right hint on StackOverflow: #17736427.
Using git difftool --dir-diff
(having BC3 configured as difftool) is OK for me.
Who wants to use this, may find the BC3 switch /expandall
helpful.
My previous solution was, to call git-difftool recursively.
May be this trick is helpful for someone else. So I want to share it here.
Change your git-config like this:
[difftool "bc3_all"]
cmd = "git difftool --tool=bc3_single \"$REMOTE\" &"
[difftool "bc3_single"]
cmd = "bcomp \"$REMOTE\" \"$LOCAL\""
My first attempt was to start BC3 directly as a background process:
[difftool "bc3"]
cmd = "bcomp \"$REMOTE\" \"$LOCAL\" &"
It did not work, because $LOCAL
is usually a temparary file.
When the BC3 window(s) show up, the $LOCAL
file is already deleted.
这篇关于如何在单个Bcomp3窗口中打开多个文件的git difftool?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!