相当于 bzr qlog 的 git 工具
出于代码审查的目的,我非常习惯使用 bzr qlog 命令来直观地审查两次提交之间的更改。我现在开始使用 git 并正在寻找等效的东西。我想要的三个主要功能是:
- 两个修订版的可视化选择(例如从标准修订版查看器中显示提交名称、消息、日期、分支等)
- 并排查看更改 直观地
- 查看一次更改的所有文件,而不是一次一个 到目前为止,
我发现的最接近的 git 组合是将 meld
注册为 git diff 工具,然后使用 git cola
来比较修订版本。不幸的是,这里的修订查看器是有限的,我一次只能比较一个文件。
我的后备解决方案当然是使用 bzr-git,然后简单地运行 bzr qlog。我已经尝试过了,它似乎工作正常,我只是担心当我开始在存储库中使用 git 特定功能时,它就会开始让我失望。
那么,是否有一个 git 工具或一系列工具,可以让我无需太多努力就能获得相同的基本结果?
注意:我对 SmartGit 等商业解决方案不感兴趣
For the purpose of code review I got quite used to using the bzr qlog
command to visually review the changes between two commits. I am now starting to use git and am looking for the equivalent. The three primary features I want are:
- visual selection of the two revisions (like from a standard revision viewer showing the commit name, message, date, branch, etc.)
- viewing changes side-by-side visually
- viewing all the files changed at once, not just one at a time
The closest git combination I've found so far is to register meld
as the git diff tool and then use git cola
to compare revisions. Unfortunately the revision viewer here is limited and I can only compare one file at a time.
My fallback solution is of course to use bzr-git
and then simply run bzr qlog
. I've tried this and it seems to work alright, I'm just concerned that the moment I start using git-specific features in the repository it will start failing me.
So, is there a git tool, or series of tools, which I can get the same basic result without too much effort?
NOTE: I'm not interested in commercial solutions like SmartGit
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你尝试过 gitk 吗?默认情况下它应该与 git 捆绑在一起。只需从控制台运行 gitk 即可。它只是不并排比较修订版本,而是以差异格式(+、-、...)进行比较。
Have you tried
gitk
? It should be bundled with git by default. Just rungitk
from your console. It just doesn't compare revisions side by side, but in diff format (+, -,...).如果您是 vim 用户,请查看优秀的 vim fugitive 及其 Gdiff 命令。
If you're a vim user, check out the excellent vim fugitive and its Gdiff command.