You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since diff and split default to -r @, it is easy to forget to add -r when using them for another revision. When this happens, jj treats the argument as a file name that usually doesn't match anything and proceeds to report and empty diff.
Instead, jj should show a warning when the pattern doesn't match any actual files, similar to log. Potentially, we could also (or instead) check whether the argument actually matches a revision first.
I think the related #505 was the first issue I filed here. Since then, I started to think that the same approach as with jj log might be easier and equally effective.
Since
diff
andsplit
default to-r @
, it is easy to forget to add-r
when using them for another revision. When this happens,jj
treats the argument as a file name that usually doesn't match anything and proceeds to report and empty diff.Instead,
jj
should show a warning when the pattern doesn't match any actual files, similar to log. Potentially, we could also (or instead) check whether the argument actually matches a revision first.Related Discord discussion: https://discord.com/channels/968932220549103686/968932220549103689/1098397923819135036
The text was updated successfully, but these errors were encountered: