11 lines
172 B
Go
Raw Normal View History

2025-01-05 06:30:54 +01:00
package roast
func (r *Roast) CurrentBranchName() (string, bool) {
head, err := r.repo.Head()
if err != nil {
return "", false
}
return head.Name().Short(), true
}