Commit graph

9 commits

Author SHA1 Message Date
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
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
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
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