2

I want to check in files to TFS, but not all in my pending changes.

PendingChange[] changes = workspace.GetPendingChanges();
workspace.CheckIn(changes, "");

In this way i check in all my files. But i only want to check in selected files with a specific file name. How can i do this?

proud
  • 53
  • 2
  • 8

1 Answers1

1

Try filtering changes list based on PendingChange.FileName or other property. Then call Workspace.CheckIn with filtered changes list.

Tomek Szpakowicz
  • 14,063
  • 3
  • 33
  • 55