git-blame用于请求请求 [英] git-blame for pull requests

查看:59
本文介绍了git-blame用于请求请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要类似"git blame"的请求请求.为了审核文件上的更改,我需要使用对合并了每个更改(假设有一个更改)的 pull request (而不是提交)的注释来注释文件.有工具可以做到这一点吗?

I'd like something like "git blame" for pull requests. In order to audit changes on a file, I need to annotate a file with references to the pull request (rather than the commit) that merged each change (supposing there is one). Is there a tool to do this?

推荐答案

我不认为目前有一个.

但是,您可能希望考虑在提交消息例如中使用元数据来引用问题,功能,故事等.Pivotal Tracker具有

However, you might wish to consider using meta data in commit messages e.g. referencing issues, features, stories etc. Pivotal Tracker has good support for these.

您还可以在关闭每个请求的提交中包含请求请求编号.请参见通过提交消息关闭问题.

You could also include the pull request number in the commit that closes each pull request. See Closing issues via commit messages.

文章介绍如何使用功能分支在提交历史记录中跟踪拉取请求.

This article describes how you can use feature branches to keep track of pull requests in your commit history.

最后,要添加到@onionjake的答案中,github具有良好的对git-notes的支持.

Finally, to add to @onionjake's answer, github has good support for git-notes too.

这篇关于git-blame用于请求请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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