You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jj log -p -Tbuiltin_log_comfortable
@ p Emily 24 seconds ago 32f6c26a
├─╮ (empty) file.txt (no change)
│ │
│ ○ nw Emily 24 seconds ago 904b2dfe
│ ├─╮ file.txt s/original/modified
│ │ │
│ │ │ Added regular file merge1:
│ │ │ (empty)
○ │ │ no Emily 24 seconds ago git_head() 1a87c77b
╰─┬─╮ file.txt (no change)
│ │
│ │ Added regular file merge2:
│ │ (empty)
│ ○ nk Emily 24 seconds ago a45b96c8
│ │ file.txt s/original/modified
│ │
│ │ Modified regular file file.txt:
│ │ 1 1: originalmodified
○ │ k Emily 24 seconds ago c74287d5
├─╯ file.txt original
│
│ Modified regular file file.txt:
│ 1 1: originalmodified
○ zt Emily 24 seconds ago 1f494f9b
│ file.txt original again, but the commit is empty
│
│ Added regular file file.txt:
│ 1: original
◆ zz root() 00000000
Steps to Reproduce the Problem
jj git init --colocate .
jj b c init -r@;echo original > file.txt
jj new init; jj b c A -r@;echo modified > file.txt
jj new init; jj b c B -r@;echo modified > file.txt
jj new A B; jj b c C -r@
jj new A B; jj b c D -r@
jj new C D; jj b c E -r@
jj file show -rE file.txt
Expected Behavior
"modified"
Actual Behavior
"original"
Specifications
Platform: Linux, Windows
Version: 0.28.2
The text was updated successfully, but these errors were encountered:
As discussed on Discord, this is kind of working as intended. Revision C merges two revisions that both contain a abc->xyz diff. Since the state after the merge (i.e. the state in C) is xyz, it effectively discarded one abc->xyz diff. The same is true for D. So when E merges C and D, the result is that two abc->xyz diffs get discarded, which takes you back to the abc state.
Description
Tested on jj 0.28.2.
Sequence of events:
See this log:
Steps to Reproduce the Problem
Expected Behavior
"modified"
Actual Behavior
"original"
Specifications
The text was updated successfully, but these errors were encountered: