Last active
March 2, 2021 23:57
-
-
Save darakeon/7fcdf4ddadbe04abc1d672a920fdc08d to your computer and use it in GitHub Desktop.
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
@echo off | |
set current=%cd%\ | |
set folder=%1 | |
set batpath=%2 | |
cd %folder% > NUL | |
if "%folder%" neq "" ( | |
set current=%current%%folder%\ | |
) | |
if exist %current%.git ( | |
echo. | |
echo %folder% | |
git status -s -b | |
) else ( | |
for /d %%d in (%current%*) do ( | |
call %batpath%git-check.bat %%~nd ..\%batpath% | |
) | |
) | |
if "%1" neq "" ( | |
cd .. | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment