From bfed03e0c07183b402d818e830be2a3bd6e5f88a Mon Sep 17 00:00:00 2001 From: romanman Date: Sat, 6 Sep 2014 11:38:45 +0300 Subject: [PATCH] Adapting for Ethereum as a library style: + track-untrack-local - helping script --- .../track-untrack-local.bat | 0 ethereumj-studio/track-untrack-local.bat | 35 +++++++++++++++++++ 2 files changed, 35 insertions(+) rename track-untrack-local.bat => ethereumj-core/track-untrack-local.bat (100%) create mode 100644 ethereumj-studio/track-untrack-local.bat diff --git a/track-untrack-local.bat b/ethereumj-core/track-untrack-local.bat similarity index 100% rename from track-untrack-local.bat rename to ethereumj-core/track-untrack-local.bat diff --git a/ethereumj-studio/track-untrack-local.bat b/ethereumj-studio/track-untrack-local.bat new file mode 100644 index 00000000..fb9f66ba --- /dev/null +++ b/ethereumj-studio/track-untrack-local.bat @@ -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 +:untrackProps +@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 +:trackProps +@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 \ No newline at end of file