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

Q: How do I automatically add ALL untracked files?

Open BrunoBonacci opened this issue 6 months ago • 2 comments

Hi,

Firstly, thank you for the module, I used it quite a bit.

I've looked at gac-automatically-add-new-files-p but it seems to be only adding the files which are being edited and not tracked.

this is my configuration in the top folder of my project.

((nil . ((eval git-auto-commit-mode 1)
         (gac-automatically-add-new-files-p . t)
         (gac-automatically-push-p . t))))

My use case is to edit org-mode files and add linked images. The org file will be committed and pushed, but the image remains untracked.

is there an option to add all untracked files, whether they are edited or not?

thank you Bruno

BrunoBonacci avatar Jul 09 '25 09:07 BrunoBonacci

I think it is related to this function, as it adds new files ONLY if they has been opened in a buffer. In my case images are downloaded with org-download without opening in a new buffer.

cudatuda avatar Sep 24 '25 14:09 cudatuda

same in my case, images added with org-download are inlined in the current org-mode buffer but not opened/edited in a separate buffer.

BrunoBonacci avatar Sep 25 '25 10:09 BrunoBonacci