-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Method 1:
On every new change:
- Store the diff between the current tree and the previous one.
- Replace the previous tree with the current one.
On restoring:
- Walk back the array of stored diffs and apply them back.
Method 2:
On every new change:
- Store the diff between the current tree and the one created when
startwas run
On restoring:
- Use the last diff to restore the current tree to its original state (or just replaced the current tree with the original one).
- Calculate which change would be the last one applied if the revert was to be carried.
- Apply the diff of the selected change to the current directory, so as to bring it forward in time to when the revert has dictated.
Which one is better?
I'm not totally sure which one of the is the fastest one so that should be investigated. So far, I've implemented method 1.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels