-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Opening revision of a renamed file is broken #3050
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
Comments
@mogelbrod Can you please verify this fix in tomorrow's ( You can switch to the pre-release edition of GitLens, by clicking on the "Switch to Pre-Release version of this extension" from the Extensions view. |
@eamodio I seem to be stuck on v2023.12.1104 no matter how many times I switch between pre-release and release version, even after reloading and restarting vscode 🙁 |
|
@mogelbrod wow sorry about that, I dunno what happened with this one, but this should be fixed for real in tomorrow's pre-release ( |
Updated to v2023.12.1304 and unfortunately getting the same error. Also noticed that the |
Ah, if you haven't staged the rename that is "by-design" -- Git (and GitLens by proxy) doesn't do rename detection until the file is staged. Prior to staging, Git just sees things as a file that was deleted and a new file that was added. And that new file is untracked, and thus has no history. There was an issue when you staged it as well (and it shows as a rename), but that is what should now be fixed. |
For consistency and to avoid confusion, could it make sense to still prompt for another file if the command is called with a file that is neither staged nor committed? It's a common use case for me to want to compare a renamed file with the one in history, and it will be kinda annoying to have to remember to first stage it temporarily just to do so (especially if I already have a busy staging area) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Opened #3109 to track #3050 (comment) |
x.js
tox.ts
or similarExpected behaviour: be presented with a revision picker

Actual behaviour: "Unable to show commit history"
Nothing logged to the GitLens output
Originally posted by @mogelbrod in #708 (comment)
The text was updated successfully, but these errors were encountered: