Ask a question to get started
Enter to send•Shift+Enter new line
read_git_branch_via_subprocess( path: str | Path, ) -> str
path
str | Path
Directory or file path inside a repository.
Fall back to git rev-parse for unusual repository layouts.
git rev-parse