]> code.delx.au - gnu-emacs/commitdiff
* admin/update_autogen (commit): With git, call "add" before "commit".
authorGlenn Morris <rgm@gnu.org>
Mon, 1 Dec 2014 17:58:51 +0000 (12:58 -0500)
committerGlenn Morris <rgm@gnu.org>
Mon, 1 Dec 2014 17:58:51 +0000 (12:58 -0500)
admin/ChangeLog
admin/update_autogen

index 82974dc846f36b2dceaf1f7e0aab1c2b4c4e263d..0529a877120d281f724280ce233da34df5166fe0 100644 (file)
@@ -1,3 +1,7 @@
+2014-12-01  Glenn Morris  <rgm@gnu.org>
+
+       * update_autogen (commit): With git, call "add" before "commit".
+
 2014-11-19  Paul Eggert  <eggert@cs.ucla.edu>
 
        Lessen focus on ChangeLog files, as opposed to change log entries.
index d9d34fa3d6e291e14ced1f7ab852def38a66e3c5..84e0584f220d71381e09bb83e15a53b42495e3ad 100755 (executable)
@@ -228,6 +228,10 @@ commit ()
 
     echo "Committing..."
 
+    [ "$vcs" = "git" ] && {
+        $vcs add "$@" || return $?
+    }
+
     $vcs commit -m "Auto-commit of $type files." "$@" || return $?
 
     [ "$vcs" = "git" ] && {