Getting Beyond Compare to Diff 2 Branches Simultaneously

ぐ巨炮叔叔 提交于 2019-12-02 16:49:27
Olivier Refalo

Starting with git v1.7.11, you can use git difftool --dir-diff to perform a directory diff.

The answer that follows applies to git installations older than v1.7.11.


This issue is not related to BC, but to the way git works. Fortunately, there is a solution at this URL - git-diffall

Chris

I used these commands to set Beyond Compare 4 (despite the bc3 you see in them) as the diff / merge tools:

git config --global diff.tool bc3
git config --global difftool.bc3.path "C:/Program Files/Beyond Compare 4/bcomp.exe"

git config --global merge.tool bc3
git config --global mergetool.bc3.path "C:/Program Files/Beyond Compare 4/bcomp.exe"

Then I compared two branches like this, where "oldbranchname" and "newbranchname" are the names of the two branches I wanted to compare.

git difftool -d --tool=bc3 oldbranchname newbranchname

I get the folder view as if I compared two folders with beyond compare. The only thing of note is that it will not show identical files in the comparison, but that has not bothered me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!