Foundry.GitBlame

g Foundry.GitBlame Foundry.GitBlame Foundry.VcsBlame Foundry.VcsBlame Foundry.VcsBlame->Foundry.GitBlame GObject.Object GObject.Object GObject.Object->Foundry.VcsBlame

Subclasses:

None

Methods

Inherited:

Foundry.VcsBlame (4), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

dup_commit_id (line)

Virtual Methods

Inherited:

Foundry.VcsBlame (3), GObject.Object (7)

Properties

Inherited:

Foundry.VcsBlame (1)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Foundry.GitBlame(**kwargs)
Bases:

Foundry.VcsBlame

Abstract:

No

Structure:

Foundry.GitBlameClass

Git implementation of blame information for version control files.

Foundry.GitBlame provides Git-specific functionality for retrieving and managing blame information for files in version control. It handles blame data retrieval, caching, and provides efficient access to authorship and modification information for code analysis and display.

dup_commit_id(line)
Parameters:

line (int) – the line number (0-indexed)

Returns:

a newly allocated string containing the commit ID, or None if the line is not found or not tracked

Return type:

str

Gets the commit ID string for the given line number from the blame information.

The commit ID is the hash of the commit that last modified the line.

New in version 1.1.