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