improve Git workflow

main
Dominik Madarász 2024-09-02 16:31:13 +02:00
parent 7b998afc08
commit 116c55cf22
2 changed files with 7 additions and 4 deletions

View File

@ -234,6 +234,10 @@ if "%1"=="dpush" (
if "%1"=="push" ( if "%1"=="push" (
call make.bat tidy call make.bat tidy
if "%2"=="dp" (
call MAKE.bat dpush auto
)
git diff --quiet --exit-code git diff --quiet --exit-code
if !ERRORLEVEL! neq 0 ( if !ERRORLEVEL! neq 0 (
echo There are uncommitted changes. Please commit or stash them before pushing. echo There are uncommitted changes. Please commit or stash them before pushing.
@ -252,9 +256,6 @@ if "%1"=="push" (
) )
git status git status
if "%2"=="dp" (
call MAKE.bat dpush auto
)
rem git add . rem git add .
git commit git commit
git diff --quiet --exit-code --cached git diff --quiet --exit-code --cached

4
ga.bat
View File

@ -1,6 +1,8 @@
@echo off @echo off
:loop :loop
if "%~1"=="" goto :eof if "%~1"=="" goto :end
git add "%~1" git add "%~1"
shift shift
goto loop goto loop
:end
git status