a7b59acea6
Add newer Emacs versions to tests
2022-12-07 08:47:52 -08:00
50cb58b11d
Make git a little quieter
...
On my system whenever I run the tests without specifying an initial branch name,
I get a lot of messages about setting the default branch name globally. This is
just noise for these tests, so this specifies a branch name manually to make it
go away.
The name ‘gac-test’ was chosen to make it clear that we're dealing with a
repository created specifically for ‘git-auto-commit-mode’ in case somehow a
repository gets left behind.
2022-12-07 08:38:01 -08:00
97d9392d51
Extract getting the latest commit message into a function
...
If the way to get the commit message ever changes, or needs more
post-processing, it's easy to be able to change it in just one place instead of
everywhere.
2022-12-07 07:28:22 -08:00
7b628c0ce0
Add a few tests for the ‘gac-default-message’ variable
2022-12-07 07:23:51 -08:00
a6b6e0fa18
Add note about how to set the customization options
2020-11-17 18:27:41 -08:00
df07899acd
Bump version, update news
2020-08-27 23:53:52 -07:00
d4fd943206
Make use of the ‘:var’ and ‘before|after-each’ forms of buttercup
...
This removes a bit of boiler-plate code from the tests, hopefully making them
easier to read and write.
2020-08-18 23:54:59 -07:00
e2c939cb8e
Rename test setup function
...
I’d like to rename other functions as well, but especially with the commands and
variables I’m afraid of breaking configurations. I don’t have to worry about
that so much yet with the test functions.
2020-08-18 23:32:07 -07:00
23abaff792
Add github workflow that runs buttercup on push and pull requests
2020-08-18 22:08:58 -07:00
Oleg Pykhalov
2d48b8296d
Configure Git in tests
2020-08-18 22:05:01 +03: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
106fc3c8b4
Update contributing instructions
2020-01-12 17:56:17 -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
4cfc906cb4
Expand explanation of directory-local variables
2019-12-10 21:46:05 -08:00
3e5fab83a5
Update README.org to follow new org-mode indentation
...
org-mode 9.3 started indenting description lists as normal, this commit makes
the README.org follow that indentation.
2019-12-10 21:41:51 -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
2f05046731
Consistently apply the code markup to customization options
2019-10-07 21:34:53 -07:00
fc94d0df93
Document the behaviour of ‘C-g’ in the summary entry
2019-10-07 21:33:09 -07: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
23a0224a00
Update README
2019-10-07 20:37:02 -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
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