mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-18 08:30:00 +02:00
Updated the Markdown manuals
This commit is contained in:
@@ -58,25 +58,24 @@ Script Content
|
||||
param([string]$RepoDir = "$PWD")
|
||||
|
||||
try {
|
||||
Write-Progress "⏳ (1/3) Searching for Git executable... "
|
||||
Write-Progress "(1/3) Searching for Git executable... "
|
||||
$null = (git --version)
|
||||
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
||||
|
||||
Write-Progress "⏳ (2/3) Checking local repository..."
|
||||
Write-Progress "(2/3) Checking local repository..."
|
||||
if (!(Test-Path "$RepoDir" -pathType container)) { throw "Can't access folder: $RepoDir" }
|
||||
$RepoDirName = (Get-Item "$RepoDir").Name
|
||||
|
||||
Write-Progress "⏳ (3/3) Fetching latest updates..."
|
||||
Write-Progress "(3/3) Fetching latest updates..."
|
||||
& git -C "$RepoDir" fetch --all --force --quiet
|
||||
if ($lastExitCode -ne "0") { throw "'git fetch --all' failed with exit code $lastExitCode" }
|
||||
Write-Progress -completed " "
|
||||
Write-Progress -completed "Done."
|
||||
|
||||
" "
|
||||
"Commit ID Reference"
|
||||
"--------- ---------"
|
||||
& git -C "$RepoDir" ls-remote origin 'pull/*/head'
|
||||
if ($lastExitCode -ne "0") { throw "'git ls-remote' failed with exit code $lastExitCode" }
|
||||
Write-Progress -completed " "
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@@ -84,4 +83,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of list-pull-requests.ps1 as of 10/19/2023 08:11:39)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of list-pull-requests.ps1 as of 12/07/2023 20:24:19)*
|
||||
|
Reference in New Issue
Block a user