Closed halloleo closed 4 months ago
The variables are git.autoAdd
and git.autoCommit
, as described in the documentation.
Aaaaah, of course.
I was fiddling and trying for a while and I had read through the doco, but I missed the bit that these vars have to be part of the [git]
subsection. My bad. I now can confirm when the config is correct, it works as expected. 😃
Thanks heaps for chiming in here. You made my day.
Describe the bug
I think I found a bug in chezmoi -- if I understand things correctly:
The config variables
autoAdd = true
andautoCommit = true
don't seem to add or commit changes in the source directory to the git repo of that directory.To reproduce
Start with a clean git repo of the source directory:
and the following complete
~/.config/chezmoi/chezmoi.toml
:Then add a new file
~/.inputrc
(which is not yet in chezmoi) to the source directory viaThen check chezmoi's git repo:
Expected behaviour
I expected that the file
dot_inputrc
is added to the repository and its current version is committed to the repo.Output of
chezmoi doctor
Additional context
I tried using
autoAdd
alone, but that didn't bring any change to the git repo either.