Blame

    • blame(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.
    • path
    • Path to the file to blame.
    • flags
    • A GITBLAME* constant.
    • min_match_characters
    • The number of alphanum chars that must be detected as moving/copyingwithin a file for it to associate those lines with the parent commit.
    • newest_commit
    • The id of the newest commit to consider.
    • oldest_commit
    • The id of the oldest commit to consider.
    • min_line
    • The first line in the file to blame.
    • max_line
    • Blame.forline(_line_no)
    • Returns the object for a given line given its number in thecurrent Blame.

    Parameters:

    • line_no
    • Line number, starts at 1.
      • Blame.iter()
      • Blame.len()
      • Blame.getitem(n)

    Attributes:

    • BlameHunk.
    • Number of lines

    • BlameHunk.final_start_line_number
    • Final start line number

    • BlameHunk.orig_commit_id

    • Original path

    • Origin start line number

    • boundary

    • Tracked to a boundary commit

    Getters:

    • BlameHunk.final_committer
    • BlameHunk.orig_committer

    • Original committer
    • GIT_BLAME_NORMAL
    • GIT_BLAME_TRACK_COPIES_SAME_FILE
    • GIT_BLAME_TRACK_COPIES_SAME_COMMIT_MOVES
    • GIT_BLAME_TRACK_COPIES_SAME_COMMIT_COPIES
    • GIT_BLAME_TRACK_COPIES_ANY_COMMIT_COPIES