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

feature: select what will be committed #37

Open hrehfeld opened 3 years ago

hrehfeld commented 3 years ago

I see the following options here:

And then also (setq git-auto-commit-mode-staged-only t)

ryuslash commented 3 years ago

Hey! Thanks for these suggestions! Does this mean the current situation isn't to your liking? If git-auto-commit-mode is enabled for all files in a repository every time you make a change you would get a new commit, so I'm not sure which files would be left to commit with it.

Can you elaborate on your situation perhaps?

hrehfeld commented 3 years ago

So, I took some notes in the last weeks. I notice the following use-cases/problems relating to single file commits:

So, there are two problems:

ryuslash commented 3 years ago

Thank you, that helps a lot! Those are excellent points. For the first problem you mention I don't think there is currently anything that can help this, I'll have a look at implementing this when I have some time.

For the second problem you mention, I think this is what gac-debounce-interval should help with. You should be able to set this to the number of seconds that you want to wait before committing. But I think this only works for individual files at the moment.