diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-02-24 13:48:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-02-24 13:48:23 +0200 |
commit | 7aac91e251b89ca39d451ccf5cb9a48f4a753a2a (patch) | |
tree | 322dac65c52860b2ed710fc5a2187fd45d8336a8 /git | |
parent | c6a5d854a9c3b546f0797df9e936bb6b2d3970ca (diff) |
Exclude the etc module from commit and stash operations
One normally doesn't want this module to participate in group commit
or stash.
Diffstat (limited to 'git')
-rwxr-xr-x | git/commit.sh | 2 | ||||
-rwxr-xr-x | git/diff.sh | 2 | ||||
-rw-r--r-- | git/modules | 3 | ||||
-rwxr-xr-x | git/push.sh | 2 | ||||
-rwxr-xr-x | git/stash-pop.sh | 2 | ||||
-rwxr-xr-x | git/stash.sh | 2 | ||||
-rwxr-xr-x | git/stat.sh | 2 | ||||
-rwxr-xr-x | git/tag.sh | 2 |
8 files changed, 9 insertions, 8 deletions
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 @@ -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" |