_repo¶
rhiza_hooks._repo
¶
Shared internal helpers for rhiza hooks.
find_repo_root()
¶
Find the repository root directory.
Walks up from the current working directory looking for a .git entry.
Returns:
| Type | Description |
|---|---|
Path
|
Path to the nearest ancestor containing |
Path
|
working directory if none is found. |