-
Just as the title says, I want something similar to modify_ where you can change certain parts of a file but rather I want to ignore certain parts of a file. This way if things like timestamps, links, or even version number get changed by an application, Chezmoi wouldn't ask me to apply the change forcing me to change that entry in my source file. Ideally it would be using templating like {{ .ignore }} so that any value can replace that part. If there is already a method I haven't figured it out. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I can't think of any way that this would work without adding significant complexity that would make change detection overall in chezmoi far less reliable. I haven't dug deeply into chezmoi's change detection, but if I were doing it I would compute a digest (MD5 would be sufficient, but SHA2-256 is cheap and cheerful in 2025) of the contents of the file, the filename, and some metadata (mostly permissions, but explicitly excluding In a well-structured configuration file (something that's TOML, YAML, XML, or JSON) that wouldn't be easy, but most of the files that a |
Beta Was this translation helpful? Give feedback.
-
Check out https://github.com/VorpalBlade/chezmoi_modify_manager. |
Beta Was this translation helpful? Give feedback.
Check out https://github.com/VorpalBlade/chezmoi_modify_manager.