Skip to content

BlameCommand: Notice when the file is unsaved:#26

Merged
psykzz merged 1 commit into
masterfrom
unsaved-warning
May 13, 2018
Merged

BlameCommand: Notice when the file is unsaved:#26
psykzz merged 1 commit into
masterfrom
unsaved-warning

Conversation

@frou

@frou frou commented May 13, 2018

Copy link
Copy Markdown
Owner

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

psykzz commented May 13, 2018

Copy link
Copy Markdown
Collaborator

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