Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Proposal] Add git_blame_buffer#1979

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
9at8 wants to merge2 commits intolibgit2:master
base:master
Choose a base branch
Loading
from9at8:add-blame-buffer

Conversation

@9at8
Copy link

Motivation and Background

I was trying to make a VS extension that implements something like GitLens on VSCode. If you don't know what that is that's ok. It has a lot of features, but the main thing that I use it for is to view per line blame along with the commit message like so:

image

I am using libgit2sharp to develop my extension. Currently I'm usingrepo.Blame(filePath) to get grab theBlameHunkCollection and display the message on a line using the VS extensibility api.repo.Blame usesgit_blame_file under the hood andgit_blame_file has a couple of issues for my usecase:

  • It is really slow
  • I can get an accurate blame resultonly after saving the file to disk. In other words, I cannot get the blame results for a file that is still being worked on/is open in memory

Purpose of this PR

I am creating this PR to start a discussion for adding something similar togit_blame_buffer tolibgit2sharp. There might be a better way to implement this functionality, and I would to get some feedback and bounce ideas to add this feature to the library in the best way possible.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@9at8

[8]ページ先頭

©2009-2025 Movatter.jp