clean_source_revision
junjo.evaluation.clean_source_revision
Kind: Function
SDK version: 0.67.0
Documentation channel: Stable release
Signature
Section titled “Signature”clean_source_revision(repository: Path | None = None) -> strReturn HEAD only when the complete containing Git worktree is clean.
Parameters
Section titled “Parameters”| Name | Type | Description | Default |
|---|---|---|---|
repository |
Path | None |
File or directory inside the application worktree. Defaults to the caller’s current working directory. |
None |
Returns
Section titled “Returns”str: The clean 40- or 64-character lowercase Git object ID.
Raises
Section titled “Raises”| Exception | Description |
|---|---|
DirtySourceTreeError |
If Git inspection fails or tracked/untracked changes make the candidate revision untruthful. |