Can patch files be read by TFS or visual studio? I'd like to either create a shelveset or apply the patch to a workspace in TFS.
-
To clarify your question: you have multiple version control systems. In one system you modify some code files and want to apply those changes to TFS also. Is that what you mean?– Ewald HofmanSep 21, 2010 at 3:32
-
Yes. The changes were made in GIT, the same code is also in TFS. I can sync the changes from TFS into GIT manually, but haven't found a good way to move the changes from GIT back into TFS.– Frank SchwietermanSep 21, 2010 at 21:12
2 Answers
According to this question:
- You can create unified diff patch files with:
tf diff /format:unified [/shelveset:] >filename.diff
with tf.exe
being usually here C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
(See tf Command-Line Utility Tool in Team Foundation Server).
- You cannot import/use a patch file in TFS.
I created a feature request here: https://connect.microsoft.com/VisualStudio/feedback/details/631052/ability-to-import-or-use-a-unified-diff-patch-file-in-tfs
-
1I want to upvote your microsoft connect issue, but the Terms of Service for microsoft connect worried me. Jan 13, 2011 at 17:52