Commit graph

49 commits

Author SHA1 Message Date
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
fa4e042f8d Update NEWS 2015-04-04 16:49:03 +02:00
7b370eeb37 Update README 2015-04-04 16:46:43 +02:00
9edaf8243d Cleanup git-commit slightly 2015-04-03 09:48:51 +02:00
858dc816f1 Merge remote-tracking branch 'owengriffin/windows-support' 2015-04-03 09:42:29 +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
e7b3a146b8 Show MELPA badges in README 2015-03-21 15:19:02 +01:00
4685b7ee16 Bump version 2015-03-21 15:12:50 +01:00
c3f42d0635 Merge remote-tracking branch 'mbreit/quote-filename' 2015-03-21 15:04:15 +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
0e8c5e8d3f Update NEWS 2014-12-29 20:39:28 +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
cbc62b2a88 Remove site-related files
New script generates site automatically.
2013-10-10 02:46:38 +02: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
995293de8f Merge branch 'geerds/provide-feature' 2013-10-07 23:19:24 +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
684010b71f Add other complementary files 2013-04-10 01:51:30 +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
060aba187d Add README 2013-04-09 01:59:51 +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
84b6267ce0 Use gac as prefix for symbol names
I refused to do this before because it reminds me too much of .Net's
Global Assembly Cache. Now I feel I need it, though, since
`git-auto-commit' is too long.
2012-05-20 14:18:03 +02:00
18f9fb41e4 Fix docs
Fix tiny typo and filling in docs.
2012-05-20 14:15:46 +02:00
6b7f2adfa4 Prepare for packaging
Add Author, Keywords and URL to header, add explanation to header and
add a ChangeLog heading.

Add '... ends here' line.
2012-05-20 14:14:59 +02:00
71a6ef8cd1 Added COPYING file 2012-01-10 21:48:17 +01:00
04180df89a Add some license info and so on 2012-01-10 21:44:05 +01:00
d3ddb34bdc Use relative path for commit message 2012-01-10 21:32:50 +01:00
563c1daaf4 Add space to lighter 2012-01-10 00:08:10 +01:00
bfa5e0a4f4 Add .gitignore 2012-01-09 23:59:56 +01:00
59c97f2ada Initial commit 2012-01-09 23:58:28 +01:00