Replies: 2 comments 9 replies
-
There are a few tools in your belt that you can use:
I think that a smart combination of some of those should be enough for your use case. |
Beta Was this translation helpful? Give feedback.
-
Idea: Have a During creation, nothing special. During updates, these files are not overwritten. When reviewing the update, we can easily see if it is just the auto-generated values that are different. We could also create a task to remove these lines automatically. And delete the .diff file if empty. Or cherry on the case, Copier could provide a smarter config. This still doesn't solve my problem with values like |
Beta Was this translation helpful? Give feedback.
-
Use case: I've a template file (
.env
) containing auto-generated passwords (usingmake_secret()
), and it is ignored in Git (obviously).When I update the project, it is of course every time different because of the auto-generated passwords… but it can also be different because of changes in the rest of the content. And the current file must keep the current passwords.
So, it would be great to have more choices (than "overwrite? y/n") to resolve the conflict.
I'm thinking about creating a new file containing either a diff or the new version (to be safe and not modifying the current file). That file would have the same name with a suffix ".diff" or ".new".
Beta Was this translation helpful? Give feedback.
All reactions