Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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...

alt text

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.

like image 515
Cheeso Avatar asked Mar 26 '26 00:03

Cheeso


1 Answers

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);
like image 169
Cheeso Avatar answered Mar 28 '26 12:03

Cheeso



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!