Skip to content

Commit d4b8916

Browse files
committed
Make example commands consistent and concise
1 parent 309c6d4 commit d4b8916

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: docs/repos/tfvc/use-team-foundation-version-control-commands.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,11 @@ Use the following syntax to specify a version specification:
246246

247247
| Type | Syntax | Description | Examples | Result |
248248
| --- | --- | --- | --- | --- |
249-
| Changeset | `[C]<version-number>` | Specifies items based on a changeset number. If an item that's in scope wasn't modified in the specified changeset, the system takes the latest version of the item that occurred before the specified changeset. You can omit `C` if you specify only a number.| `c:\code\SiteApp\Main>tf get readme.txt /v:C8`<br><br>`c:\code\SiteApp\Main>tf get readme.txt /v:8`<br><br>`c:\code\SiteApp\Main>tf get readme.txt;8` | If *readme.txt* was modified in changeset 8, the example code gets that version of the file. Otherwise, it gets the most recent version of *readme.txt* before version 8. |
250-
| Label | `L<label>` | Specifies items that a label is applied to. | `c:\code\SiteApp\Main>tf get readme.txt;LJulyHotFix`<br><br>`c:\code\SiteApp\Main>tf get /version:LLastKnownGood` | The first example gets the version of *readme.txt* that was labeled **JulyHotFix**. The second retrieves the version of all labeled items (and deletes those items not labeled) in the workspace as they existed when the changeset labeled **LastKnownGood** was created. You might use the code in the second example as part of an [automated build process](../../pipelines/build/triggers.md). |
251-
| Date and time | `D<yyyy-mm-ddTxx:xx>`<br><br>or<br><br>`D<mm/dd/yyyy>`<br><br>or<br><br>Any .NET Framework-supported format.<br><br>or<br><br>Any of the date formats supported on the local machine. | Specifies a changeset that was created on a specified date at a specific time. | `c:\code\SiteApp\Main>tf get /version:D2022-03-22`<br><br>`c:\code\SiteApp\Main>tf get /version:D2022-03-22T09:00` | The first example updates the workspace to match the codebase as it existed on March 22, 2022 at midnight. The second updates the workspace to match the codebase as it existed on March 22, 2022 at 9:00 AM. For more information about .NET Framework-supported date and time formats, see [DateTime](/dotnet/api/system.datetime) and [Standard date and time format strings](/dotnet/standard/base-types/standard-date-and-time-format-strings). |
249+
| Changeset | `[C]<version-number>` | Specifies items based on a changeset number. If an item that's in scope wasn't modified in the specified changeset, the system takes the latest version of the item that occurred before the specified changeset. You can omit `C` if you specify only a number.| `tf get readme.txt /v:C8`<br><br>`tf get readme.txt /v:8`<br><br>`tf get readme.txt;8` | If *readme.txt* was modified in changeset 8, the example code gets that version of the file. Otherwise, it gets the most recent version of *readme.txt* before version 8. |
250+
| Label | `L<label>` | Specifies items that a label is applied to. | `tf get readme.txt;LJulyHotFix`<br><br>`tf get /version:LLastKnownGood` | The first example gets the version of *readme.txt* that was labeled **JulyHotFix**. The second retrieves the version of all labeled items (and deletes those items not labeled) in the workspace as they existed when the changeset labeled **LastKnownGood** was created. You might use the code in the second example as part of an [automated build process](../../pipelines/build/triggers.md). |
251+
| Date and time | `D<yyyy-mm-ddTxx:xx>`<br><br>or<br><br>`D<mm/dd/yyyy>`<br><br>or<br><br>Any .NET Framework-supported format.<br><br>or<br><br>Any of the date formats supported on the local machine. | Specifies a changeset that was created on a specified date at a specific time. | `tf get /version:D2022-03-22`<br><br>`tf get /version:D2022-03-22T09:00` | The first example updates the workspace to match the codebase as it existed on March 22, 2022 at midnight. The second updates the workspace to match the codebase as it existed on March 22, 2022 at 9:00 AM. For more information about .NET Framework-supported date and time formats, see [DateTime](/dotnet/api/system.datetime) and [Standard date and time format strings](/dotnet/standard/base-types/standard-date-and-time-format-strings). |
252252
| Current workspace | `W` | Specifies the version in your workspace. | - | - |
253-
| Specified workspace | `W<workspace-name>; <workspace-owner>` | Specifies the version in a specified workspace. | `WResolveRIConflicts;PatW` | The example specifies the version in the `ResolveRIConflicts` workspace that `PatW` owns. |
253+
| Specified workspace | `W<workspace-name>; <workspace-owner>` | Specifies the version in a specified workspace. | `tf get /version:WResolveRIConflicts;PatW` | The example specifies the version in the `ResolveRIConflicts` workspace that `PatW` owns. |
254254
| Tip | `T` | Specifies the most recent version. | - | - |
255255

256256
## Use options to modify how a command functions

0 commit comments

Comments
 (0)