branchWithGitStatus returns the branch with a star if the branch is currently being worked on.
()
| 213 | // branchWithGitStatus returns the branch with a star |
| 214 | // if the branch is currently being worked on. |
| 215 | func (c codespace) branchWithGitStatus() string { |
| 216 | if c.hasUnsavedChanges() { |
| 217 | return c.GitStatus.Ref + gitStatusDirty |
| 218 | } |
| 219 | |
| 220 | return c.GitStatus.Ref |
| 221 | } |
| 222 | |
| 223 | // hasUnsavedChanges returns whether the environment has |
| 224 | // unsaved changes. |
no test coverage detected