From 915c19e0614108fd87f64abfb9daff304325fef2 Mon Sep 17 00:00:00 2001 From: "Shaun Lawrie (via GitHub Actions)" Date: Fri, 15 Mar 2024 23:50:45 +1300 Subject: [PATCH] Add more git logs --- PwshSpectreConsole.Docs/src/powershell/Helpers.psm1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PwshSpectreConsole.Docs/src/powershell/Helpers.psm1 b/PwshSpectreConsole.Docs/src/powershell/Helpers.psm1 index 19d22f46..7dc01ce1 100644 --- a/PwshSpectreConsole.Docs/src/powershell/Helpers.psm1 +++ b/PwshSpectreConsole.Docs/src/powershell/Helpers.psm1 @@ -204,7 +204,10 @@ function Get-GitCommitDatesForHashFile { $gitHashfileName = Join-Path $group.Name $hashfileName Write-Host "Getting git log for $gitHashfileName in cwd $OutputPath" $dates = git log --follow --pretty="format:%ci" -- $gitHashfileName - return $dates | Sort-Object -Descending | Where-Object { $_ -notlike "*2024-03*" } + Write-Host "All dates:`n$($dates -join "`n")" + $filteredDates = $dates | Sort-Object -Descending | Where-Object { $_ -notlike "*2024-03*" } + Write-Host "Filtered dates:`n$($filteredDates -join "`n")" + return $filteredDates | Sort-Object -Descending | Where-Object { $_ -notlike "*2024-03*" } } finally { Pop-Location }