From 4f580e4324befae4224078e9e1bb552beeca0720 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Sun, 7 Sep 2008 05:19:01 +0800 Subject: [PATCH] Run `git commit -a' when no files are passed. * clcommit.m4sh (func_commit): Add -a argument if necessary. Signed-off-by: Gary V. Vaughan --- ChangeLog | 3 +++ clcommit.m4sh | 1 + 2 files changed, 4 insertions(+) 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 -- 2.47.2