tfstf-cli

"tf status" to see pending changes without "detected" adds


I want to use TF.EXE to get a list of the pending changes in my source branch. I want the same list I see in Visual Studio's "Pending Changes" window.

For instance, I current have 167 pending changes shown in the Pending Changes window, about 50/50 edits and adds. Under Excluded Changes, there is a button titled "Detected: 49998 add(s)". These are literally tens of thousands of intermediate/output files in my solution directory that are not under source control, which I don't want under source control, and which are not "Pending Change" by any definition of that term.

However, when I do tf status in my solution directory, it shows me all these files as adds. How do I get just the list of Pending Changes shown in Visual Studio (i.e the files that will actually be checked-in when I submit changes)?

Alternatively, some way to copy the list from the Visual Studio UI. I just want to put this list in an email, but the UI is horrible (won't expand to use available vertical space, can't copy text, etc.) and the command line gives me garbage.

(EDIT) Solution: tf checkin /recursive, select items in list and hit CTRL+C to get list on clipboard.


Solution

  • You are looking for the check in window such as this question: VS2012 return to a normal TFS checkin window?

    You could use tf check in command with the prompt window, should be able to copy the list in the E-Mail then. Another method is using TFS api to do this.