Search code examples
tfstfs-power-tools

How to list files content diffs for particular TFS changeset via command line?


Changeset consists from files (let's consider only file changes, adding, removing). I want specify changeset number and obtain text output with all files modifications against previous version similar to TF difference command:

full file name 1
....
line 1;
- old line;
+ new line;
line 3;
....
full file name 2
....
line 1;
- old line;
+ new line;
line 3;
....

I don't want restrict directory scope. How to list such diffs for concrete changeset in command line?


Solution

  • tf difference $/TeamProjectRoot /version:C4~C5 /noprompt /r
    

    when we want to list diffs for the whole project tree for changeset 5.