From 7aac91e251b89ca39d451ccf5cb9a48f4a753a2a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 24 Feb 2011 13:48:23 +0200 Subject: Exclude the etc module from commit and stash operations One normally doesn't want this module to participate in group commit or stash. --- git/commit.sh | 2 +- git/diff.sh | 2 +- git/modules | 3 ++- git/push.sh | 2 +- git/stash-pop.sh | 2 +- git/stash.sh | 2 +- git/stat.sh | 2 +- git/tag.sh | 2 +- 8 files changed, 9 insertions(+), 8 deletions(-) (limited to 'git') diff --git a/git/commit.sh b/git/commit.sh index deecada..e5a1950 100755 --- a/git/commit.sh +++ b/git/commit.sh @@ -27,7 +27,7 @@ if test ! -s "$msg_file"; then exit 1 fi -for i in $modules; do +for i in $odb_modules; do echo "commit $i" 1>&2 cd $i git add . diff --git a/git/diff.sh b/git/diff.sh index 19737e9..6412543 100755 --- a/git/diff.sh +++ b/git/diff.sh @@ -7,7 +7,7 @@ self=`realpath $0` wd=`pwd` -for i in $modules; do +for i in $all_modules; do echo "diff $i" 1>&2 cd $i git --no-pager diff diff --git a/git/modules b/git/modules index 6f0a4ac..9af5f8d 100644 --- a/git/modules +++ b/git/modules @@ -1 +1,2 @@ -modules="libodb libodb-mysql libodb-tracer libodb-boost odb examples tests etc" +odb_modules="libodb libodb-mysql libodb-tracer libodb-boost odb examples tests" +all_modules="$core_modules etc" diff --git a/git/push.sh b/git/push.sh index e37d351..83fadd1 100755 --- a/git/push.sh +++ b/git/push.sh @@ -7,7 +7,7 @@ self=`realpath $0` wd=`pwd` -for i in $modules; do +for i in $all_modules; do echo "push $i" 1>&2 cd $i git push --tags origin master diff --git a/git/stash-pop.sh b/git/stash-pop.sh index be43664..adec9c0 100755 --- a/git/stash-pop.sh +++ b/git/stash-pop.sh @@ -7,7 +7,7 @@ self=`realpath $0` wd=`pwd` -for i in $modules; do +for i in $odb_modules; do echo "stash pop $i" 1>&2 cd $i git stash pop diff --git a/git/stash.sh b/git/stash.sh index afc2124..0175296 100755 --- a/git/stash.sh +++ b/git/stash.sh @@ -7,7 +7,7 @@ self=`realpath $0` wd=`pwd` -for i in $modules; do +for i in $odb_modules; do echo "stash $i" 1>&2 cd $i git stash diff --git a/git/stat.sh b/git/stat.sh index 39eb081..300432f 100755 --- a/git/stat.sh +++ b/git/stat.sh @@ -7,7 +7,7 @@ self=`realpath $0` wd=`pwd` -for i in $modules; do +for i in $all_modules; do echo "stat $i" 1>&2 cd $i git status diff --git a/git/tag.sh b/git/tag.sh index 99ba938..243e315 100755 --- a/git/tag.sh +++ b/git/tag.sh @@ -12,7 +12,7 @@ if [ "$1" = "" ]; then exit 1 fi -for i in $modules; do +for i in $all_modules; do echo "tag $i" 1>&2 cd $i git tag -a $1 -m "Tag version $1" -- cgit v1.1