Phase commit
phase_commit
Retrieve commit hashes for AXM protocol phases.
get_phase_commit(working_dir, phase_name, *, message_format='[axm] {phase}')
Retrieve the commit hash associated with an AXM phase.
Searches git log for commits whose message matches the format
used by :class:CommitPhaseHook.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
working_dir
|
Path
|
Repository root path. |
required |
phase_name
|
str
|
Phase name to search for. |
required |
message_format
|
str
|
Message pattern used by CommitPhaseHook
(default |
'[axm] {phase}'
|
Returns:
| Type | Description |
|---|---|
str | None
|
Short commit hash if found, |