Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

tfs

tf-cli

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.

like image 669
Mud Avatar asked Nov 17 '25 01:11

Mud


1 Answers

Some years later but might still be useful for someone:

tf status -nodetect
like image 107
zzz Avatar answered Nov 18 '25 19:11

zzz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!