1
0
mirror of synced 2024-11-12 01:50:46 +01:00
universe/commit.cmd
2022-02-04 01:09:08 +00:00

20 lines
308 B
Batchfile

@echo off
set BASE=%CD%
for /R /D %%G in (*) 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 %BASE%
)
if defined ANY (
git add .
git commit %*
)