1
0
mirror of synced 2024-11-27 16:50:47 +01:00
universe/commit.cmd
2022-02-03 21:17:27 +00:00

19 lines
293 B
Batchfile

@echo off
for /D %%G in (%CD%\*) do if exist %%G\.git (
cd %%G
set RESULT=
for /f %%i in ('git status -s') do (set RESULT=%%i)
if defined RESULT (
git add %*
git commit %*
set ANY=1
)
cd ..
)
if defined ANY (
git add .
git commit %*
)