The builtin diff editor for jj split
mishandles truncating a file to 0 bytes
#3526
Labels
scm-record
Issues relating to the scm-record library, used as the default interactive diff/merge editor.
Steps to Reproduce the Problem
Expected Behavior
The first commit created by split should truncate the file and the second commit should be empty.
Actual Behavior
It's the opposite. The first commit is empty and the second commit truncates the file.
Specifications
I synced back to before #3481 and the bug existed then as well. I'm planning to look at this alongside arxanas/scm-record#26 since they're closely related.
scm-record
has a few rough edges around empty files.The text was updated successfully, but these errors were encountered: