From bfc117a5d56f1b4a369a4f75fcc0e11182b5caa8 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 16 Apr 2024 18:02:29 +0000 Subject: [PATCH] feat: git checkout -ResetPath ( Fixes #269 ) --- docs/Git.Checkout.Input-Extension.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/docs/Git.Checkout.Input-Extension.md b/docs/Git.Checkout.Input-Extension.md index c4a83c32..685c6c33 100644 --- a/docs/Git.Checkout.Input-Extension.md +++ b/docs/Git.Checkout.Input-Extension.md @@ -42,20 +42,28 @@ The name of a new branch #### **ResetBranchName** The name of a branch to reset. -|Type |Required|Position|PipelineInput |Aliases | -|----------|--------|--------|---------------------|---------------------| -|`[String]`|false |named |true (ByPropertyName)|Reset
ResetBranch| +|Type |Required|Position|PipelineInput |Aliases | +|----------|--------|--------|---------------------|-----------| +|`[String]`|false |named |true (ByPropertyName)|ResetBranch| + +#### **ResetPath** +One or more specific paths to reset. +This will overwrite the contents of the files with the contents of the index. + +|Type |Required|Position|PipelineInput |Aliases| +|------------|--------|--------|---------------------|-------| +|`[String[]]`|false |named |true (ByPropertyName)|Reset | #### **Detach** If set, will checkout a branch in a detached state. -|Type |Required|Position|PipelineInput| -|----------|--------|--------|-------------| -|`[Switch]`|false |named |false | +|Type |Required|Position|PipelineInput | +|----------|--------|--------|---------------------| +|`[Switch]`|false |named |true (ByPropertyName)| --- ### Syntax ```PowerShell -Extensions/Git.Checkout.Input.Ugit.Extension.ps1 [-BranchName ] [-PullRequest ] [-NewBranchName ] [-ResetBranchName ] [-Detach] [] +Extensions/Git.Checkout.Input.Ugit.Extension.ps1 [-BranchName ] [-PullRequest ] [-NewBranchName ] [-ResetBranchName ] [-ResetPath ] [-Detach] [] ```