1
0
mirror of synced 2025-02-17 18:49:15 +01:00
universe/commit.cmd
2022-02-04 01:08:54 +00:00

20 lines
309 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 %*
)