-
Sorry to ask, but I don't really understand what the target state is for in the Say, I have the file Now I changed the file on another machine B and added the changes to chezmoi's source dir on machine B. Then I synced the source dir back to machine A. Now on A I don't want to just apply the changes, but pick and choose "the best of both", i.e. merge. On machine A I now have just two different files which I want to merge., the destination file But vimdiff opens three files, so it includes the target state, but there is, I think no difference between target and one of teh other files Can I just ignore the target state? After reading about the Concepts I can only explain this with the idea that the third file is solely needed for templates. So in my case I can just ignore it? I just save the best of both to |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The target state represents what chezmoi will write given the current source. For non-template files, it should be the same as the source. |
Beta Was this translation helpful? Give feedback.
-
I see! Thanks for this. So for non-template files, the three-way merge here is not showing a "base" version (like the git three-way merge). So for non-template files, I just look at source & destination, save my result to the destination and then go from there, right? |
Beta Was this translation helpful? Give feedback.
Correct. chezmoi is not git.
No. Save the result to the source so that your changes to the destination are included the next time you run
chezmoi apply
.