Identity
identity
Git identity resolution with schedule-based profile switching.
GitIdentity
GitProfileConfig
Bases: BaseModel
Full git-profiles.toml configuration.
Source code in packages/axm-git/src/axm_git/core/identity.py
Schedule
ScheduleRule
author_args(identity)
Build --author arguments for a git command.
load_config(config_path=None)
Load and validate a git-profiles TOML config file.
Returns None if the file is missing, empty, or invalid.
Source code in packages/axm-git/src/axm_git/core/identity.py
resolve_identity(workspace_path, *, now=None, profile_override=None, config_path=None)
Resolve the git identity for the given workspace.
Returns None when no config is available or an unknown profile
is requested via profile_override.