Replies: 1 comment
-
At some point, I got confused. I clearly remember both files being modified at one point, but now checking again only one contains additions over the other. I'm not sure what I did. But it's clear my post is misleading at this point. Sorry for the confusion. I'll resolve this post since I don't think I need an answer anymore. If I run into this issue again I'll start another post. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Environment
.chezmoi.toml
)Configuration
My
.chezmoi.toml
has:Issue Description
I have changes in both my chezmoi source file and my target file, but both
chezmoi diff
andchezmoi merge
are only showing changes in one direction.What I expected
Since I have modifications in both files, I expected to see:
-
lines)+
lines)What actually happened
Both
chezmoi diff
and Beyond Compare merge tool only show deletions:No additions (
+
lines) appear, even though I believe I have changes in both the source and target files.Status output
Questions
Why are only deletions shown when I have changes in both files? Should
chezmoi diff
show bidirectional changes?Is the
MM
status indicating that both files have been modified, and if so, why don't I see additions in the diff output?How should
chezmoi merge
handle the case where both source and target files have been independently modified?Workaround
Currently using
chezmoi diff
to see all changes and thenchezmoi apply
to apply them, but would prefer to use the merge tool for a more visual review process.Beta Was this translation helpful? Give feedback.
All reactions