ryuslash / git-auto-commit-mode

Automatically commit to git after each save
http://projects.ryuslash.org/git-auto-commit-mode/
GNU General Public License v3.0
167 stars 26 forks source link

New files won't be committed #20

Closed mrvdb closed 4 years ago

mrvdb commented 5 years ago

I've been using gac to automatically commit my journal files using a .dir-locals.el file in the root of the folder tree where the journal files live.

((org-mode . ((eval git-auto-commit-mode 1))))

It seems that commit https://github.com/ryuslash/git-auto-commit-mode/commit/5bb26c63843381d9b3dad7708970a93494d20b26 changed the behaviour of the package a bit where files that are not in the index won't be added anymore.

Could this perhaps be made into an option?

The issue made me think of this : https://xkcd.com/1172/

image

ryuslash commented 5 years ago

Hey, thanks for the report. Woops! Yeah this wasn't intentional. I'll try and get it working the old way again (possibly as an option) as soon as I have some time to work on this again.

ryuslash commented 4 years ago

Ok, I've committed a fix for this on the master branch, please let me know if everything works correctly this way. I've added a (dumb) test to hopefully make sure that this doesn't happen again.

Please let me know if this fixes things for you.

mrvdb commented 4 years ago

Yup, good to go for me. Thanks!