6
0
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:
Grzegorz Dlugoszewski
2020-06-02 16:46:10 +02:00
parent 1406aa78c6
commit 8a79dcfd9f
4 changed files with 88 additions and 11 deletions

View File

@@ -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)