-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli
split
: add experimental --restore-from AKA --from argument
This is useful when you accidentally put some changes in the wrong commit. In the future, we could add some shortcuts for common uses. For example, we could define `current(X)` to be the current revision with the same change id as `X` (which would usually be a hidden commit) and have a shortcut for `jj split --from X -r current(X)` (only valid if `current(X)` is one commit). Or, we could have a similar operation for `obscurrent(X)`, defined as `obsheads(obsdescendants(X))` , based on the `jj obslog` graph (see also #4129 for a more focused discussion about implementing such operation). However, let's have the basic operation first. It should be useful with the default value of `-r @`.
- Loading branch information
Showing
4 changed files
with
395 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.