diff --git a/pygit2/__init__.py b/pygit2/__init__.py index ada4aaf..2674063 100644 --- a/pygit2/__init__.py +++ b/pygit2/__init__.py @@ -32,6 +32,7 @@ from __future__ import absolute_import from _pygit2 import * # High level API +from .blame import Blame, BlameHunk from .config import Config from .credentials import * from .errors import check_error diff --git a/pygit2/repository.py b/pygit2/repository.py index 239af12..d9c1eed 100644 --- a/pygit2/repository.py +++ b/pygit2/repository.py @@ -442,11 +442,10 @@ class Repository(_Repository): # # blame # - def blame(self, path, flags=None, min_match_characters=None, newest_commit=None, oldest_commit=None, min_line=None, max_line=None): - """blame(path, [flags, min_match_characters, newest_commit, oldest_commit,\n" - min_line, max_line]) -> Blame - - Get the blame for a single file. + def blame(self, path, flags=None, min_match_characters=None, + newest_commit=None, oldest_commit=None, min_line=None, + max_line=None): + """Return a Blame object for a single file. Arguments: