Created
April 20, 2011 20:12
-
-
Save dahlbyk/932601 to your computer and use it in GitHub Desktop.
Write-ChildGitStatus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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