简体   繁体   English

我如何在TFS中获得自动合并注释

[英]How do i get an automatic merge comment in TFS

In source control systems and tools like tortoises for svn or sourcetree for git, when I am committing a merge, I can usually just left a default comment generated by the tool that is basically a summary of what changes were merged. 在源代码控制系统和工具(例如svn的陆龟或git的sourcetree)中,当我提交合并时,通常可以只留下该工具生成的默认注释,该注释基本上是合并了哪些更改的摘要。 In visual studio using TFS, there is a comment textbox right above the changes list, but I have to type it all manually. 在使用TFS的Visual Studio中,更改列表正上方有一个注释文本框,但是我必须手动输入所有注释。 It's not super important but it is a time saver sometimes. 这不是超级重要,但有时可以节省时间。 Maybe i'm just not looking at the right place. 也许我只是在找对地方。

If you're using TFS with Git, then this becomes less of an issue. 如果您将TFS与Git一起使用,那么这将不再是一个问题。 When you merge all the individual commits come along for the ride, so it's not necessary to re-describe them in the merge commit. 当您合并所有单独的提交时,因此不必在合并提交中重新描述它们。

I have used TFS a lot, and unfortunately I don't think that option exists. 我已经使用了很多TFS,但是不幸的是我不认为该选项存在。 I usually copy my original checkin text and then paste it if I am doing multiple merges. 我通常会复制原始签到文本,然后在进行多次合并时将其粘贴。 I realize this is a low tech way to do it and the original comment isn't generated for me. 我意识到这是一种技术含量较低的方法,并且原始注释不是为我生成的。 If you want to be able to do this bad enough, you can probably write a Visual Studio plug in that would do it for you, or you could code up just about anything you want to add with the Team Foundation Server SDK. 如果您想做到这一点足够糟糕,则可以编写一个Visual Studio插件来为您完成此任务,或者您可以编写任何您想使用Team Foundation Server SDK添加的内容。

Try extension Auto Merge 尝试扩展自动合并

If you need set original comment setup Settings "comment_format" like {{OriginalComment}} 如果您需要设置原始评论设置,请设置 “ comment_format”,例如{{OriginalComment}}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM