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

Ability to specify line range for git blame #94

Closed
wants to merge 3 commits into from

Conversation

kpumuk
Copy link

@kpumuk kpumuk commented Sep 15, 2011

Sometimes full git blame is not necessary (for example, when you want to check who changed a specific line, like for error reporting). I've added two params to repo.blame, so it's possible to narrow down amount of data processed:

# get blame for line 25
repo.blame('lib/grit.rb', '2d3acf90f35989df8f262dc50beadc4ee3ae1560', 25)
# get blame for lines 25-26
repo.blame('lib/grit.rb', '2d3acf90f35989df8f262dc50beadc4ee3ae1560', 25, 26)

PS. Tests included

@kovyrin
Copy link

kovyrin commented Sep 15, 2011

Useful feature, +1

@bkeepers
Copy link
Collaborator

bkeepers commented Feb 3, 2014

Grit is no longer maintained. See #183 and check out libgit2/rugged.

@bkeepers bkeepers closed this Feb 3, 2014
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.

None yet

3 participants