Skip to content

Instantly share code, notes, and snippets.

@dahlbyk
Created April 20, 2011 20:12
Show Gist options
  • Save dahlbyk/932601 to your computer and use it in GitHub Desktop.
Save dahlbyk/932601 to your computer and use it in GitHub Desktop.
Write-ChildGitStatus
function Write-ChildGitStatus($dir = '.')
{
gci $dir |
where { $_.PSIsContainer } |
foreach {
pushd $_
$s = Get-GitStatus
if($s) {
Write-Host -NoNewline $_.Name
Write-GitStatus $s
Write-Host
}
popd
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment