diff options
Diffstat (limited to 'git')
-rwxr-xr-x | git/commit.sh | 10 |
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 |