git_commits
Load and format Git commits from a local repository.
This module provides functionality to: - Load commits from a local Git repository. - Format commit information into a context string suitable for generating brag documents.
Classes:
Name | Description |
---|---|
GitCommitsSource |
A class to load Git commits from a local repository. |
GitCommitsSource
dataclass
🔗
Bases: DataSource[GitCommit]
A class to load Git commits from a local repository.
Attributes:
Name | Type | Description |
---|---|---|
path |
Path
|
A Path object representing the local repository. |
author |
str
|
The username of the author whose commits are being fetched. |
from_date |
datetime | None
|
An optional datetime object representing the start date for fetching commits. |
to_date |
datetime | None
|
An optional datetime object representing the end date for fetching commits. |