开发者

How can I generate a diff from within Visual Studio for a codeplex project?

I made some changes in the sourcecode for a project hosted on codeplex. I'm not an author or editor on the project - just a user. But I'd like to submit the changes as a patch.

Codeplex has a nice way to do upload the patch...

How can I generate a diff from within Visual Studio for a codeplex project?

How can I generate a patch or a diff开发者_运维百科, from within Visual Studio? How can I generate something that another VS developer could apply to update his source code? Does VS have a patch/diff capability?

Thanks.


Use the TFS command line tool, tf.exe:

tf diff  <file>  | more

example output:

61,65c61
<
<             this.countdownDelay = (menuItem.Text == "none")
<                 ? 0
<                 : int.Parse(menuItem.Text, CultureInfo.InvariantCulture);
<
---
>             this.countdownDelay = int.Parse(menuItem.Text, CultureInfo.InvariantCulture);
136d131
<                 this.AddCountdownTimeMenuItem("none", parentItem);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜