I have some text files that I would like to include in every commit (if they have changed since the prior commit). What is the right way to make this happen automatically? Or else I forget to add them ...
Adding the files to a _separate_ commit breaks Iceberg, because it decides that the image is behind the repo, but there is no code that it can load to bring it up to date. I’m hoping that if the text files go in the same commit, all will be well. I’ve made some progress with this. I have found that if I have staged the text files before I do the commit with Iceberg, then they will be included in the commit. So what I need is a way of detecting modifications in the local repository (the equivalent of "git status") and then doing a "git add ..." for the changed files. And then, ideally, hooking this into Iceberg. Alternatively, I could I suppose write a pre-commit hook as a shell script and just put it in the .git/hooks directory.