-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Gblame P gets lost after following renames #693
Comments
Can you specify the exact buffer names in question? |
When I tried to reproduce this by finding renames on other repos, I instead hit #607. It does still occur where I first saw it, though, so there must be something different about the renames in question(?)...
As for why I sometimes see this and sometimes #607.. I'm really not sure. It's not specifically because the new name is a substring of the old one -- ManageIQ/manageiq's And it's not related to the basename matching; rails/rails's |
Oh whoops I completely skimmed over the "rename" bit; this completely makes sense. Not sure what to do about it. |
Is it possible to carry along the original filename a la |
What happens if you start |
I guess I'd consider that an unavoidable edge case: if you start traversing from some mid-point (and the file stops existing at some point), then we truly can't get you to the current version of that file -- indeed it may simply not exist by any name. So I guess I'd say if we don't already have a better idea of the original filename, we'd take the path from the current historical buffer, and keep that -- as we move further back in history, the name-fidelity can only get worse -- and then when the time comes, we just hope that your starting point had the right name. At least in that case, we never had better knowledge to start with, so we have a good excuse... if you start on a real file, we're forgetting something we did once know. |
I would be okay with passing along the original filename/buffer number, I guess. There are no more buffer variables but we store the arguments in See also #988. |
If I
:Gblame
a file which has recently been renamed,P
will follow the relevant lines back through history... but when I then usegq
to get back to reality, it tries to return me to a local file with whatever historical name I was just looking at, instead of taking me back to where I started.The text was updated successfully, but these errors were encountered: