Skip to main content
get_current
ytil_
git
0.1.0
get_
current
Sections
Errors
In ytil_
git::
branch
ytil_git
::
branch
Function
get_
current
Copy item path
Source
pub fn get_current() -> Result<
String
>
Expand description
Get current branch name (fails if HEAD detached).
ยง
Errors
Repository discovery fails or HEAD is detached.