Skip to content

Enrich incremental blame output #411

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

Merged
merged 3 commits into from
Apr 19, 2016
Merged

Enrich incremental blame output #411

merged 3 commits into from
Apr 19, 2016

Conversation

nvie
Copy link
Contributor

@nvie nvie commented Apr 14, 2016

This builds upon the incremental git-blame support, as added in #409. I realized that the previous implementation only returned a subset of all available information from the command's output (only the information I directly needed for my use case). However, that would mean that if we would like to use more of the available blame information, we would need to change the function's returned data structure.

Rather than a (commit: Commit, linenos: Range) tuple, this now outputs a stream of BlameEntry instances. These are named 4-tuples, containing the following fields:

  • commit
  • linenos
  • orig_path
  • orig_linenos

Which adds the last 2 fields, providing information on the original filepath / original line numbers for these paths.

Hopefully, this future-proofs the blame_incremental output before the previous implementation gets released and needs to be supported, too.

nvie added 3 commits April 14, 2016 16:11
Returning this now to avoid having to change the function's return value
structure later on if we want to emit more information.
@nvie nvie merged commit 0d7a40f into gitpython-developers:master Apr 19, 2016
@nvie nvie deleted the enrich-incremental-blame-output branch April 19, 2016 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant