如何比较Bitbucket中的两个修订版本? [英] How to compare two revisions in Bitbucket?

查看:106
本文介绍了如何比较Bitbucket中的两个修订版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的团队为我们的git存储库使用Bitbucket,并且最近我们开始使用拉取请求功能进行代码评论。它在第一次审查时工作正常,但如果它经历了多次迭代(即,进行了更改并更新了请求请求),我希望看到仅包含自上次代码审查后所做的新更改的链接。 / p>

我查看了比较功能,但UI看起来只能在分支之间进行比较。是否有一种简单的方法在两次提交之间获得差异?

解决方案

这只是对已给出答案的轻微修改,通常将#diff添加到结尾而不是#commits通常是我正在寻找的。另外,正如其他人可能提到的,对我来说,最好的结果通常是通过首先放置较新的提交和较早的提交而获得,但这取决于您的特定需求。

  https://bitbucket.org/<OWNER>/<REPO>/branches/compare/<commit-hash>...<commit-hash-older>#diff 


My team is using Bitbucket for our git repository and we've recently starting using the pull request functionality for code reviews. It works fine on the first review, but if it goes through multiple iterations (that is, changes are made and pull request updated), I would like to see a link with just the new changes that were made since the last code review.

I looked into the "compare" functionality but the UI looks like it can only compare between branches. Is there a simple way to get a diff between two commits?

解决方案

This is just a slight modification to the answers already given but adding #diff to the end instead of #commits is usually what I'm looking for. Also as others may have mentioned the best results for me are usually obtained by placing the newer commit first and the older one second but that will depend on your particular needs.

https://bitbucket.org/<OWNER>/<REPO>/branches/compare/<commit-hash>..<commit-hash-older>#diff

这篇关于如何比较Bitbucket中的两个修订版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆