function List-Commits { cd 'C:Git' $Commits = @() Get-ChildItem . -Directory | % { cd "$_" if (Test-Path (Join-Path (Get-Location) '.git')) { $Commits += git log --format="$($_)~%h~%ai~%s~%an" | ConvertFrom-Csv -Delimiter
function List-Commits { cd 'C:Git' $Commits = @() Get-ChildItem . -Directory | % { cd "$_" if (Test-Path (Join-Path (Get-Location) '.git')) { $Commits += git log --format="$($_)~%h~%ai~%s~%an" | ConvertFrom-Csv -Delimiter