]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Run `git commit -a' when no files are passed.
authorGary V. Vaughan <gary@gnu.org>
Sat, 6 Sep 2008 21:19:01 +0000 (05:19 +0800)
committerGary V. Vaughan <gary@gnu.org>
Sat, 6 Sep 2008 21:19:01 +0000 (05:19 +0800)
* clcommit.m4sh (func_commit): Add -a argument if necessary.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
ChangeLog
clcommit.m4sh

index 967fc401109c379daf3aec6b6bc7237e73b4b647..1bda87694f7e9288ca489663cc22d9c8b5a6798e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-09-07  Gary V. Vaughan  <gary@gnu.org>
 
+       Run `git commit -a' when no files are passed.
+       * clcommit.m4sh (func_commit): Add -a argument if necessary.
+
        Prepare for next stable release.
        * libltdl/Makefile.inc (LTDL_VERSION_INFO): Update.
        * libltdl/m4/libtool.m4: Bump serial number to account for
index a3a2c28e8c9daff52d33b75850b28c0ee200408c..4eefd071421349435e915eb0ee0c54da7540811c 100644 (file)
@@ -361,6 +361,7 @@ func_commit ()
     subject=`git status 2>/dev/null | $SED -n 's/^#.*[mad][ode][dl].*ed: *//p'`
     test $# -gt 0 && subject="$@"
 
+    test $# -gt 0 || { set dummy -a; shift; }
     func_verbose "$GIT commit$git_flags -F $log_file ${1+$@}"
     $GIT commit$git_flags -F $log_file ${1+"$@"} || exit $EXIT_FAILURE