Skip to content

Commit

Permalink
Add more git logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Mar 15, 2024
1 parent dbee670 commit 915c19e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PwshSpectreConsole.Docs/src/powershell/Helpers.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 915c19e

Please sign in to comment.