-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jj diff
should warn when revset is used without -r (e.g. report nonexistent paths given to it)
#505
Comments
I agree. Mercurial does that in many commands ( Another complication is when you do things like |
I created #768 to handle a similar situation for |
jj diff
should report nonexistent paths given to itjj diff
should warn when revset is used without -r (e.g. report nonexistent paths given to it)
We had an interesting discussion on this topic elsewhere, beginning at #2495 (reply in thread). |
Maybe we can optimize it to check paths during diffing, but I think it's okay to add extra lookup cost at the end. The size of the path arguments is usually small. Closes jj-vcs#505
RE: Ilya's last comment, I would also prefer if |
Maybe we can optimize it to check paths during diffing, but I think it's okay to add extra lookup cost at the end. The size of the path arguments is usually small. Closes jj-vcs#505
Maybe we can optimize it to check paths during diffing, but I think it's okay to add extra lookup cost at the end. The size of the path arguments is usually small. Closes jj-vcs#505
Thanks Yuya! I feel a bit nostalgic; I think this bug was either the first or one of the very first things I did in this repo. |
I opened #3809 as my preferred solution. |
I often type
jj diff @-
instead ofjj diff -r @-
and see no results. I can also imagine a situation when I want to check for diffs in a file, mistype its name, and remain unaware of some important change in that file.I think
jj diff
should report an error if it's given a path that doesn't exist in either of the commits it's diffing between.There are a couple of questions I haven't yet resolved for myself:
jj diff
.The text was updated successfully, but these errors were encountered: