mirror of
https://github.com/grdl/git-get.git
synced 2026-02-06 05:52:58 +00:00
Add checking what is the current branch and if HEAD is detached
This commit is contained in:
@@ -140,12 +140,6 @@ const (
|
||||
ColorYellow = "\033[1;33m%s\033[0m"
|
||||
)
|
||||
|
||||
const (
|
||||
StatusOk = "ok"
|
||||
StatusUncommitted = "uncommitted"
|
||||
StatusUntracked = "untracked"
|
||||
)
|
||||
|
||||
func PrintRepoStatus(repo *Repo) string {
|
||||
status := fmt.Sprintf(ColorGreen, StatusOk)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user