Replies: 2 comments 3 replies
-
Note that the command works with any two commits, not only where
If you now do |
Beta Was this translation helpful? Give feedback.
2 replies
-
I think this matches the With your suggestion, it becomes ambiguous on how to include the changes "before" |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't look diffs for a range of revisions too often but when I do I always think twice what revision to pass in
--from
argument. I think the confusion comes from the fact that--from
doesn't include the revision in the diff. For example:jj diff --from u --to t
shows the diff betweenu
andt
not includingu
. But intuitively I'd like to see the diff includingu
. On the other hand, when I look at a branch diff using for examplejj diff --from main
I don't want to see changes of a revision thatmain
branch is set to and this is intuitively what I want and how it currently behaves.At least, I think there should be a clarification in the cli docs that
--from
doesn't include the revision in the diff forjj diff
,jj diffedit
,jj interdiff
commands. Alternatively, I'd like to suggest ditching the--from
argument completely or changing its semantics.Beta Was this translation helpful? Give feedback.
All reactions