Updated the manuals

This commit is contained in:
Markus Fleschutz
2025-05-12 22:04:02 +02:00
parent b3cdf19f4a
commit 09eb3d1808
651 changed files with 8362 additions and 1405 deletions

View File

@ -15,6 +15,7 @@ Parameters
Position? 1
Default value "$PWD"
Accept pipeline input? false
Aliases
Accept wildcard characters? false
-updateInterval <Int32>
@ -23,6 +24,7 @@ Parameters
Position? 2
Default value 60
Accept pipeline input? false
Aliases
Accept wildcard characters? false
-speed <Int32>
@ -31,6 +33,7 @@ Parameters
Position? 3
Default value 10
Accept pipeline input? false
Aliases
Accept wildcard characters? false
[<CommonParameters>]
@ -88,7 +91,7 @@ param([string]$pathToRepo = "$PWD", [int]$updateInterval = 60, [int]$speed = 10)
try {
Write-Progress "Searching for Git executable..."
$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" }
Write-Progress "Checking local Git repository..."
if (-not(Test-Path "$pathToRepo" -pathType container)) { throw "Can't access directory: $pathToRepo" }
@ -101,10 +104,10 @@ try {
$tzOffset = (Get-Timezone).BaseUtcOffset.TotalSeconds
for (;;) {
& git -C "$pathToRepo" fetch --all --recurse-submodules=no --jobs=1 --quiet
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
if ($lastExitCode -ne 0) { throw "'git fetch' failed" }
$line = (git -C "$pathToRepo" log origin --format=format:'%at %s by %an%d' --max-count=1)
if ($lastExitCode -ne "0") { throw "'git log origin' failed" }
if ($lastExitCode -ne 0) { throw "'git log origin' failed" }
if ("$line" -eq "$prevLine") { Start-Sleep -seconds $updateInterval; continue }
$unixTimestamp = [int64]$line.Substring(0,10)
@ -122,4 +125,4 @@ try {
}
```
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:25)*
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:59)*