mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-25 03:18:16 +02:00
Update list-commits-live.ps1
This commit is contained in:
parent
5a5cf939bb
commit
a11c9953b9
@ -28,7 +28,7 @@ try {
|
|||||||
|
|
||||||
$linePrev = ""
|
$linePrev = ""
|
||||||
for (;;) {
|
for (;;) {
|
||||||
& git -C "$RepoDir" fetch --recurse-submodules=no --jobs=1 --quiet
|
& git -C "$RepoDir" fetch --all --recurse-submodules=no --jobs=1 --quiet
|
||||||
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
||||||
|
|
||||||
$lineNow = (git -C "$RepoDir" log --format=format:'%s by %an%d' -n 1)
|
$lineNow = (git -C "$RepoDir" log --format=format:'%s by %an%d' -n 1)
|
||||||
@ -36,7 +36,7 @@ try {
|
|||||||
Write-Host "❇️ $lineNow"
|
Write-Host "❇️ $lineNow"
|
||||||
$linePrev = $lineNow
|
$linePrev = $lineNow
|
||||||
}
|
}
|
||||||
Start-Sleep -seconds 1
|
Start-Sleep -seconds 10
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
Reference in New Issue
Block a user