mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-01-27 12:15:55 +00:00
util-script:
+ local config files track/untrack if needed
This commit is contained in:
parent
09fdc66458
commit
84d0e178a4
35
track-untrack-local.bat
Normal file
35
track-untrack-local.bat
Normal file
@ -0,0 +1,35 @@
|
||||
rem *
|
||||
rem * This file is used for local win developers to temporary
|
||||
rem * disable tracking for property files
|
||||
rem *
|
||||
|
||||
@echo off
|
||||
:getConfirmation
|
||||
set /p command=What to do with lame properties [track/untrack] ?:
|
||||
|
||||
if %command%==track goto :trackProps
|
||||
if %command%==untrack goto :untrackProps
|
||||
goto :end
|
||||
|
||||
|
||||
rem # I use this to stop push every local propertie change
|
||||
:trackProps
|
||||
@echo on
|
||||
git update-index --assume-unchanged src/main/resources/log4j.properties
|
||||
git update-index --assume-unchanged src/main/resources/system.properties
|
||||
|
||||
git update-index --assume-unchanged src/test/resources/log4j.properties
|
||||
git update-index --assume-unchanged src/test/resources/system.properties
|
||||
goto end
|
||||
|
||||
rem # If I want to get back to push this changes e.g. for some new propertie I run this
|
||||
:untrackProps
|
||||
@echo on
|
||||
git update-index --no-assume-unchanged src/main/resources/log4j.properties
|
||||
git update-index --no-assume-unchanged src/main/resources/system.properties
|
||||
|
||||
git update-index --no-assume-unchanged src/test/resources/log4j.properties
|
||||
git update-index --no-assume-unchanged src/test/resources/system.properties
|
||||
goto end
|
||||
|
||||
:end
|
Loading…
x
Reference in New Issue
Block a user