2022-02-03 22:13:20 +01:00
|
|
|
@echo off
|
|
|
|
|
2022-02-04 02:08:54 +01:00
|
|
|
set BASE=%CD%
|
|
|
|
for /R /D %%G in (*) do if exist %%G\.git (
|
2022-02-03 22:13:20 +01:00
|
|
|
cd %%G
|
|
|
|
set RESULT=
|
|
|
|
for /f %%i in ('git status -s') do (set RESULT=%%i)
|
|
|
|
if defined RESULT (
|
2022-02-04 02:09:08 +01:00
|
|
|
git add .
|
2022-02-03 22:13:20 +01:00
|
|
|
git commit %*
|
2022-02-03 22:17:27 +01:00
|
|
|
set ANY=1
|
2022-02-03 22:13:20 +01:00
|
|
|
)
|
2022-02-04 02:08:54 +01:00
|
|
|
cd %BASE%
|
2022-02-03 22:13:20 +01:00
|
|
|
)
|
2022-02-03 22:17:27 +01:00
|
|
|
|
|
|
|
if defined ANY (
|
|
|
|
git add .
|
|
|
|
git commit %*
|
|
|
|
)
|