Commit graph

57 commits

Author SHA1 Message Date
df07899acd Bump version, update news 2020-08-27 23:53:52 -07:00
5755d36c03 Fix issue with having ‘[’ in the path
Having a ‘[’ messed up the regular expression used because it wasn’t being
properly escaped.
2020-08-01 00:48:44 -07:00
Adel Qalieh
14e4def248 Add option to have it be completely silent when committing 2020-07-05 10:28:19 -04:00
Adel Qalieh
2c0488869a Add config to add flags for git commit command and document both 2020-07-05 10:23:45 -04:00
Matthew McClure
dd0c2441de
Replace 404 URL with github.com page 2020-03-22 16:07:48 -04:00
ae69e61233 Bump version 2020-02-17 15:48:12 -08:00
6f7b58f866 Merge remote-tracking branch 'ThibautVerron/Commit-msg' 2019-12-14 02:21:35 -08:00
Holger Wenzel
aff67aa36d added flag for git add command 2019-12-14 02:10:38 -08:00
d8d9dab5d2 Add option to prevent new files from being added to git
Setting ‘gac-automatically-add-new-files-p’ to t will tell git-auto-commit-mode
not to try adding new files to the git repository.
2019-12-10 21:39:06 -08:00
b0db5b841b Fix new files not being committed
When deciding if a file should be committed or not, also check to see if the
file has been committed before.
2019-12-10 21:18:17 -08:00
Thibaut Verron
24c8e7b0fe Add setting for changing the default message 2019-11-21 13:10:05 +01:00
Thibaut Verron
ea3b5c0d91 Auto commit: /home/guests/verron/Development/git-auto-commit-mode/git-auto-commit-mode.el 2019-11-21 13:08:30 +01:00
Thibaut Verron
392ca73178 Auto commit: /home/guests/verron/Development/git-auto-commit-mode/git-auto-commit-mode.el 2019-11-21 13:07:48 +01:00
Thibaut Verron
a597d6920a git-auto-commit-mode.el 2019-11-21 13:04:33 +01:00
Thibaut Verron
4a8a7e0271 git-auto-commit-mode.el 2019-11-21 13:02:03 +01:00
5bb26c6384 Don’t commit when there are no changes
Before trying to commit, run a ‘git diff’ to make sure there are any changes to
commit. If this turns up empty no commit is attempted.
2019-10-07 21:29:12 -07:00
3db70af7d3 Update version to v4.5.0 2019-10-07 20:40:04 -07:00
Constantine Vetoshev
e533166a22 Fix automatic Git push when used with debouncing. 2019-07-16 12:36:37 -07:00
Constantine Vetoshev
fa8865bf49 Fix whitespace. 2019-07-11 09:30:01 -07:00
Constantine Vetoshev
0ac5025766 Code review fixes. 2019-07-11 09:24:58 -07:00
Constantine Vetoshev
074739d78f Add support for commit debouncing.
This patch prevents frequent saves from making an excessively large number of
commits. With gac-debounce-interval (a buffer-specific variable) set to a number
representing seconds, buffers with git-auto-commit-mode active will only make
Git commits at the end of the given interval after a save. So with
gac-debounce-interval set to 300, a buffer will commit changes accumulated over
5 minutes, rather than at every save. It will also commit if the buffer is
killed.

This mode of operation can be made default with, e.g.:

    (setq-default gac-debounce-interval 300)
2018-06-22 21:57:16 -07:00
Stig Brautaset
2c8197e5d7 Support fish which uses "; and" rather than "&&" to join commands 2016-12-29 16:17:29 +00:00
075e5f9ded Bump version 2015-04-04 16:51:09 +02:00
b151584256 Update copyright and url headers 2015-04-04 16:49:15 +02:00
9edaf8243d Cleanup git-commit slightly 2015-04-03 09:48:51 +02:00
Owen Griffin
acf6a60578 Wrap git commit message in shell-quote-argument 2015-04-02 22:52:31 +01:00
Owen Griffin
344667ee75 Use default-directory for git commit
- Uses double-quotes for commit message to support filenames with spaces
  on Windows
- file-name-nondirectory is necessary for Windows support, otherwise the
  drive name (C:\) is included in the path
2015-04-02 21:20:34 +01:00
Owen Griffin
ca96589764 Support Windows paths
- Changes the current directory before commit
- Quotes the filename arguments using shell-quote-argument
2015-04-01 21:30:21 +01:00
4685b7ee16 Bump version 2015-03-21 15:12:50 +01:00
Moritz Breit
e11eb392c0 Quote filename for git add
Fixes git-auto-commit-mode for files with spaces in the filename.
2015-03-20 21:13:15 +01:00
7e4ed5f07a Bump version 2014-12-29 20:42:15 +01:00
b36909ab64 Update copyright years 2014-12-29 20:38:59 +01:00
058c55cf2a Add option to ask for a summary
When this option is enabled, whenever a commit is about to be made a
summary of the commit's changes is asked of the user. If no summary is
given, or if the option is nil, use the relative file-name.
2014-12-29 20:33:50 +01:00
17f8fa22a3 Update docstrings to fix checkdoc warnings 2013-10-07 23:59:21 +02:00
dbe05bed93 Change name 2013-10-07 23:59:05 +02:00
6d8c914b24 Bump version 2013-10-07 23:23:13 +02:00
Jascha Geerds
8401b45a4f Provide "git-auto-commit-mode" feature 2013-10-07 21:03:19 +02:00
3ccf3fb624 Update version info
Should have been done before the last tag.
2013-04-10 01:57:21 +02:00
3b04c88eb6 Use defcustom for gac-automatically-push-p 2013-04-09 02:29:00 +02:00
82e65c6d50 Add NEWS 2013-04-09 02:16:38 +02:00
8eb92a7870 Update copyright years 2013-04-09 01:29:53 +02:00
7f999c824c Bump version to .1 2012-06-23 19:34:16 +02:00
45983d24aa Fix URL value 2012-06-23 19:29:36 +02:00
2721bcb968 Fix documentation about gac-automatically-push 2012-06-23 11:45:24 +02:00
440a19d806 Rename gac-automatically-push
It is normal for boolean values, or predicates, to end with `-p' in
emacs-lisp, so `gac-automatically-push' should really be named
`gac-automatically-push-p'.
2012-06-23 11:41:27 +02:00
360d129a0c Always make gac-automatically-push buffer local. 2012-06-23 11:38:11 +02:00
791c8e0b7e Add autoload cookie for packaging 2012-05-27 11:51:11 +02:00
fed8e9fea7 Forgot to rename variable git-auto-push
The `gac-auto-push' variable has changed to `gac-automatically-push',
`gac-after-save-func' was not informed.
2012-05-20 23:02:35 +02:00
02ba70f3e3 Show status at the end of the push 2012-05-20 15:17:21 +02:00
629d48d6fb Automatic push functionality
Add the ability to automatically push changes after commits. This just
calls `git push', so upstream and such should already have been set
up.

Setting `git-automatically-push' to `t' enables this functionality.
2012-05-20 15:01:34 +02:00