2014-06-21 09:35:43 +00:00
|
|
|
rem *
|
|
|
|
rem * This file is used for local win developers to temporary
|
|
|
|
rem * disable tracking for property files
|
|
|
|
rem *
|
|
|
|
|
|
|
|
@echo off
|
|
|
|
:getConfirmation
|
2014-12-26 08:36:37 +00:00
|
|
|
set /p command=What to do with lame properties [track/untrack] ?:
|
2014-06-21 09:35:43 +00:00
|
|
|
|
|
|
|
if %command%==track goto :trackProps
|
|
|
|
if %command%==untrack goto :untrackProps
|
|
|
|
goto :end
|
|
|
|
|
|
|
|
|
2014-12-26 08:36:37 +00:00
|
|
|
rem # I use this to stop push every local propertie change
|
2014-06-21 13:41:31 +00:00
|
|
|
:untrackProps
|
2014-06-21 09:35:43 +00:00
|
|
|
@echo on
|
2014-09-06 09:04:53 +00:00
|
|
|
git update-index --assume-unchanged ./src/main/resources/log4j.properties
|
|
|
|
git update-index --assume-unchanged ./src/main/resources/system.properties
|
2014-06-21 09:35:43 +00:00
|
|
|
|
2014-09-06 09:04:53 +00:00
|
|
|
git update-index --assume-unchanged ./src/test/resources/log4j.properties
|
|
|
|
git update-index --assume-unchanged ./src/test/resources/system.properties
|
2014-06-21 09:35:43 +00:00
|
|
|
goto end
|
|
|
|
|
|
|
|
rem # If I want to get back to push this changes e.g. for some new propertie I run this
|
2014-06-21 13:41:31 +00:00
|
|
|
:trackProps
|
2014-06-21 09:35:43 +00:00
|
|
|
@echo on
|
2014-09-06 09:04:53 +00:00
|
|
|
git update-index --no-assume-unchanged ./src/main/resources/log4j.properties
|
|
|
|
git update-index --no-assume-unchanged ./src/main/resources/system.properties
|
2014-06-21 09:35:43 +00:00
|
|
|
|
2014-09-06 09:04:53 +00:00
|
|
|
git update-index --no-assume-unchanged ./src/test/resources/log4j.properties
|
|
|
|
git update-index --no-assume-unchanged ./src/test/resources/system.properties
|
2014-06-21 09:35:43 +00:00
|
|
|
goto end
|
|
|
|
|
|
|
|
:end
|