mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-17 16:11:22 +02:00
Updated the manuals
This commit is contained in:
@@ -15,6 +15,7 @@ Parameters
|
||||
Position? 1
|
||||
Default value "$PWD"
|
||||
Accept pipeline input? false
|
||||
Aliases
|
||||
Accept wildcard characters? false
|
||||
|
||||
-searchPattern <String>
|
||||
@@ -24,6 +25,7 @@ Parameters
|
||||
Position? 2
|
||||
Default value *
|
||||
Accept pipeline input? false
|
||||
Aliases
|
||||
Accept wildcard characters? false
|
||||
|
||||
[<CommonParameters>]
|
||||
@@ -82,13 +84,13 @@ try {
|
||||
if (-not(Test-Path "$pathToRepo" -pathType container)) { throw "Can't access repo folder '$pathToRepo' - maybe a typo or missing folder permissions?" }
|
||||
|
||||
$null = (git --version)
|
||||
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
||||
if ($lastExitCode -ne 0) { throw "Can't execute 'git' - make sure Git is installed and available" }
|
||||
|
||||
& git -C "$pathToRepo" fetch
|
||||
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
||||
if ($lastExitCode -ne 0) { throw "'git fetch' failed" }
|
||||
|
||||
$branches = $(git -C "$pathToRepo" branch --list --remotes --no-color --no-column)
|
||||
if ($lastExitCode -ne "0") { throw "'git branch --list' failed" }
|
||||
if ($lastExitCode -ne 0) { throw "'git branch --list' failed" }
|
||||
|
||||
""
|
||||
"List of Git Branches"
|
||||
@@ -107,4 +109,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:21)*
|
||||
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:55)*
|
||||
|
Reference in New Issue
Block a user