Replies: 1 comment 13 replies
-
I think |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
jj move for example, has pretty obvious --from / --to options but I can't seem to build a similar intuition for restore (or even diffedit and instead always need to check the help page beforehand).
I think part of the confusion comes from being able to read --from / --to either way -- i.e., "restore these paths from the way they're in $revision" or "restore these paths to the way they're in $revision" (if anything, the --to version sounds more natural to me and if there's a difference between these two, it's not obvious to me as a non-native English speaker).
Also, editing the --to revision (which is the current behavior) doesn't seem very natural to me (it's called --to in move because you're moving changes to it, with restore, something like -r seems like a better fit).
tl;dr: thoughts on
jj restore [-r=@] [--to=r-]
(current --to renamed to -r, current --from renamed to --to and --to allowing revsets)? Slightly related: #1298.Beta Was this translation helpful? Give feedback.
All reactions