From 292bd5f880b7c4342a737b8c7fb99485598e38a3 Mon Sep 17 00:00:00 2001 From: edy4c7 Date: Tue, 28 May 2024 23:14:05 +0900 Subject: [PATCH] add --force-if-includes to tab expansion --- src/GitParamTabExpansion.ps1 | 2 +- test/GitParamTabExpansion.Tests.ps1 | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GitParamTabExpansion.ps1 b/src/GitParamTabExpansion.ps1 index a3839bc5c..cbcd99815 100644 --- a/src/GitParamTabExpansion.ps1 +++ b/src/GitParamTabExpansion.ps1 @@ -67,7 +67,7 @@ $longGitParams = @{ notes = 'force message file reuse-message reedit-message ref ignore-missing stdin dry-run strategy= commit abort quiet verbose' prune = 'dry-run verbose expire' pull = 'quiet verbose recurse-submodules= no-recurse-submodules= commit no-commit edit no-edit ff no-ff ff-only log no-log stat no-stat squash no-squash strategy= strategy-option= verify-signatures no-verify-signatures summary no-summary rebase= no-rebase all append depth= unshallow update-shallow force keep no-tags update-head-ok upload-pack progress' - push = 'all prune mirror dry-run porcelain delete tags follow-tags receive-pack= exec= force-with-lease no-force-with-lease force repo= set-upstream thin no-thin quiet verbose progress recurse-submodules= verify no-verify' + push = 'all prune mirror dry-run porcelain delete tags follow-tags receive-pack= exec= force-with-lease no-force-with-lease force-if-includes force repo= set-upstream thin no-thin quiet verbose progress recurse-submodules= verify no-verify' rebase = 'onto continue abort keep-empty skip edit-todo merge strategy= strategy-option= gpg-sign quiet verbose stat no-stat no-verify verify force-rebase fork-point no-fork-point ignore-whitespace whitespace= committer-date-is-author-date ignore-date interactive preserve-merges exec root autosquash no-autosquash autostash no-autostash no-ff' reflog = 'stale-fix expire= expire-unreachable= all updateref rewrite verbose' remote = 'verbose' diff --git a/test/GitParamTabExpansion.Tests.ps1 b/test/GitParamTabExpansion.Tests.ps1 index 8eaf20d41..24c5a85fc 100644 --- a/test/GitParamTabExpansion.Tests.ps1 +++ b/test/GitParamTabExpansion.Tests.ps1 @@ -13,6 +13,7 @@ Describe 'ParamsTabExpansion Tests' { $result -contains '--follow-tags' | Should -Be $true $result -contains '--force' | Should -Be $true $result -contains '--force-with-lease' | Should -Be $true + $result -contains '--force-if-includes' | Should -Be $true $result -contains '--mirror' | Should -Be $true $result -contains '--no-force-with-lease' | Should -Be $true $result -contains '--no-thin' | Should -Be $true