1
0
mirror of synced 2024-11-28 00:50:47 +01:00
universe/commit.cmd

19 lines
293 B
Batchfile
Raw Normal View History

2022-02-03 22:13:20 +01:00
@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 %*
2022-02-03 22:17:27 +01:00
set ANY=1
2022-02-03 22:13:20 +01:00
)
cd ..
)
2022-02-03 22:17:27 +01:00
if defined ANY (
git add .
git commit %*
)