Reputation: 640
Is there a way to find the number of lines of code changes(from the latest version in the server) in a TFS shelveset. I want this for code review purpose to find the total ELOC for a particular shelveset file.
Upvotes: 1
Views: 2668
Reputation: 108975
You can get a diff between two versions with tf diff
.
Eg.
tf diff the.file /format:unified /version:c1000~c1001
will show the diff on the specified file between changesets 1000 and 1001, which can be parsed to count changed lines (to whatever definition you want to use such as not counting whitespace only changes).
Note:
Upvotes: 1