summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-04 13:17:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-04 13:19:52 +0200
commit8525a166ae10fbedd5590d7f6f26e20e2273b414 (patch)
tree65fb186727173e5826818bcb02ab36e34381acb6 /git
parent5a3ad17f8810e253107f1d39c355a2bc9448d30d (diff)
Add the -i option to commit.sh which triggers committing index1.6.0.a1
Instead of adding the files with git add.
Diffstat (limited to 'git')
-rwxr-xr-xgit/commit.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/git/commit.sh b/git/commit.sh
index deecada..16a8076 100755
--- a/git/commit.sh
+++ b/git/commit.sh
@@ -7,6 +7,12 @@ self=`realpath $0`
wd=`pwd`
+if [ "$1" = "-i" ]; then
+ add=n
+else
+ add=y
+fi
+
if [ "$EDITOR" = "" ]; then
echo "no editor specified with the EDITOR variable" 1>&2
exit 1
@@ -30,7 +36,9 @@ fi
for i in $modules; do
echo "commit $i" 1>&2
cd $i
- git add .
+ if [ "$add" = "y" ]; then
+ git add .
+ fi
git commit -F $msg_file
cd $wd
done