Can TFS Pending Changes show files that are truly changed like SourceGear Vault?

前端 未结 5 1234
长情又很酷
长情又很酷 2021-01-31 03:40

I have been using SourceGear vault for some personal projects and Team Foundation Server for work projects. One thing TFS is missing is a simple feature that Vault has on its ch

5条回答
  •  萌比男神i
    2021-01-31 04:20

    There is no need to undo the unchanged files, as TFS will notice they're unchanged upon checkin and will only associate the truly changed files. Any files checked out but unchanged are reverted to their last known checked in version and will not be associated with your checkin. It is impossible in TFS (though not very clearly documented) to check in an unchanged file. It will always revert to the previous version if there are no changes.

    You can quickly undo your unchanged files by calling 'tfpt.exe uu /r' from the command line (you need to have the Team Foundation Power tools for this) or by using the "Undo unchanged" button in the Pending changes window. This removed any items from the list that are unchanged immediately. So that you can see exactly what you're checking in.

    Undo unchanged option

    Though it might be that this option is added by the Team Foundation Power Tools or the TFS Source Control Explorer Extensions (which are a must have for every TFS user anyways).

    See also:

    • https://stackoverflow.com/a/2100981/736079
    • https://stackoverflow.com/a/6387656/736079
    • https://jessehouwing.net/vsts-tfs-why-i-like-them/

提交回复
热议问题