What will and what could be done if there is a Git repo somewhere underneath /etc?
Perhaps, it could be stored verbatim, or as a submodule.
Simply ignoring it would definitely loose information from the backup.
What will and what could be done if there is a Git repo somewhere underneath /etc?
Perhaps, it could be stored verbatim, or as a submodule.
Simply ignoring it would definitely loose information from the backup.
Gave this a try, and the nested repo gets commited as a submodule, which makes a certain amount of sense. But /etc/.etckeeper includes directories and files inside the rested repo, including even in its .git/ directory.
The way pre-commit.d/30store-metadata finds files, and empty subdirectories, would need to be changed to take nested git repos into account. I don't immediately see a good way.
git-ls-files
. i lay out that idea in metadata ignore filters do not work and would very much welcome feedback on that.