git-auto-commit-mode icon indicating copy to clipboard operation
git-auto-commit-mode copied to clipboard

Ignore files in `.git` and `.gitignore`

Open hpfr opened this issue 3 years ago • 4 comments

When I occasionally manually commit with Magit while git-auto-commit-mode is enabled, submitting the commit saves .git/COMMIT_EDITMSG, which seems to trigger git-auto-commit-mode's prompt for a message (since I have gac-ask-for-summary-p enabled). This also happens when modifying ignored files. If I enter a message, I get a warning that the file I tried to commit is ignored.

git-auto-commit-mode should probably ignore .git and ignored files by default, without the user having to set up local variables for every ignored file or subdirectory. Is this possible?

hpfr avatar Mar 28 '22 18:03 hpfr

this feels like a bug; I would be willing to help fix this with a bit of guidance.

chadhs avatar Feb 22 '23 15:02 chadhs

Oops! Definitely a bug. I'll have to take a look at what we're doing here. I'd prefer not to have an explicit case for ignoring anything in .git...

@chadhs I'd be happy to provide you with any guidance you need. First I need a refresher of what's going on myself :slightly_smiling_face:

I'll try and find some time to look, in the mean time @chadhs if you have any specific questions feel free to ask.

ryuslash avatar Feb 25 '23 02:02 ryuslash