Skip to content

Conversation

@frou
Copy link
Owner

@frou frou commented May 13, 2018

Querying blame information for a file with unsaved modifications shouldn't be allowed. This is because the line-number of the text caret in the in-memory representation of the file has a high chance of referring to an unrelated line in the on-disk representation of the file. Since git blame operates solely with on-disk representation, bogus information could be shown in the phantom because of this discrepancy.

BlameShowAllCommand already protects against this.

Querying blame information for a file with unsaved modifications shouldn't be allowed. This is because the line-number of the text caret in the in-memory representation of the file has a high chance of referring to an unrelated line in the on-disk representation of the file. Since `git blame` operates solely with on-disk representation, bogus information could be shown in the phantom because of this discrepancy.

BlameShowAllCommand already protects against this.
@psykzz psykzz merged commit 074d66e into frou:master May 13, 2018
@psykzz
Copy link
Collaborator

psykzz commented May 13, 2018

Merged 👍 Thank you!

@frou frou mentioned this pull request Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants