From: Gary V. Vaughan Date: Sat, 6 Sep 2008 21:19:01 +0000 (+0800) Subject: Run `git commit -a' when no files are passed. X-Git-Tag: v2.2.6~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f580e4324befae4224078e9e1bb552beeca0720;p=thirdparty%2Flibtool.git Run `git commit -a' when no files are passed. * clcommit.m4sh (func_commit): Add -a argument if necessary. Signed-off-by: Gary V. Vaughan --- diff --git a/ChangeLog b/ChangeLog index 967fc4011..1bda87694 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-09-07 Gary V. Vaughan + 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 diff --git a/clcommit.m4sh b/clcommit.m4sh index a3a2c28e8..4eefd0714 100644 --- a/clcommit.m4sh +++ b/clcommit.m4sh @@ -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