Skip to content
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

Blame information isn't updated after git operations (commit, reset, etc) #25

Closed
Glober777 opened this issue Feb 7, 2017 · 4 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@Glober777
Copy link

Hi!

I've noticed that the 'Not Committed Yet' message keeps showing even after the change was committed.

GitLens Extension: 2.0.0
VSCode: 1.9.0

Thanks!

@eamodio
Copy link
Member

eamodio commented Feb 7, 2017

@Glober777 Thanks for the report. Sadly code doesn't currently provide a way for me to detect that a file has been committed (at least not that I could find). I am investigating adding a timeout to my cache, so even though it will stick for a while it will resolve eventually. If you find this behavior bothersome you could also disable the GitLens cache by setting gitlens.advanced.caching.enabled to false (though performance could suffer).

@eamodio eamodio self-assigned this Feb 9, 2017
@eamodio eamodio added the bug Something isn't working label Feb 9, 2017
@Glober777
Copy link
Author

Hey @eamodio! I'm not familiar with the VSCode API, and what hooks are available there, but I was wondering if you could rely on "git diff" output (executed periodically or based on an event that VSCode may be raising every time commits happen). The simplest case would be if the output of git diff is blank, than consider everything as committed. Parsing its output, would help to figure out whether some new code is still staged or not.

@eamodio
Copy link
Member

eamodio commented Feb 18, 2017

Opened microsoft/vscode#20845

@eamodio eamodio changed the title Not comitted Yet message persists even after the change was committed Blame information isn't updated after git operations (commit, reset, etc) Feb 22, 2017
billsedison added a commit to noside911/vscode-gitlens that referenced this issue Jan 4, 2019
@github-actions
Copy link

github-actions bot commented Dec 9, 2020

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants