improve Git workflow
parent
7b998afc08
commit
116c55cf22
7
MAKE.bat
7
MAKE.bat
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue