11 lines
172 B
Go
11 lines
172 B
Go
package roast
|
|
|
|
func (r *Roast) CurrentBranchName() (string, bool) {
|
|
head, err := r.repo.Head()
|
|
if err != nil {
|
|
return "", false
|
|
}
|
|
|
|
return head.Name().Short(), true
|
|
}
|