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 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);
精彩评论