1
0
Fork 0
mirror of https://github.com/Luzifer/git-recurse-status.git synced 2024-12-22 20:11:18 +00:00

Change "unknown" to "untracked" to be more in git language

This commit is contained in:
Knut Ahlers 2016-10-28 15:53:59 +02:00
parent 72e4c38dfc
commit 554cda123f
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

30
main.go
View file

@ -23,13 +23,13 @@ const (
STATUS_BEHIND = "behind" STATUS_BEHIND = "behind"
STATUS_UPTODATE = "uptodate" STATUS_UPTODATE = "uptodate"
MOD_UNKNOWN = "unknown" MOD_UNTRACKED = "untracked"
MOD_ADDED = "added" MOD_ADDED = "added"
MOD_MODIFIED = "modified" MOD_MODIFIED = "modified"
MOD_REMOVED = "removed" MOD_REMOVED = "removed"
MOD_DELETED = "deleted" MOD_DELETED = "deleted"
MOD_STASHED = "stashed" MOD_STASHED = "stashed"
MOD_CHANGED = "changed" // Special status to filter all repos having any changes MOD_CHANGED = "changed" // Special status to filter all repos having any changes
FILTER_REMOTE = "remote" FILTER_REMOTE = "remote"
) )
@ -44,7 +44,7 @@ var (
}{} }{}
porcelainFlags = map[string]string{ porcelainFlags = map[string]string{
"??": MOD_UNKNOWN, "??": MOD_UNTRACKED,
"A ": MOD_ADDED, "A ": MOD_ADDED,
"M ": MOD_ADDED, "M ": MOD_ADDED,
" M": MOD_MODIFIED, " M": MOD_MODIFIED,
@ -57,12 +57,12 @@ var (
} }
flagSigns = map[string]string{ flagSigns = map[string]string{
MOD_UNKNOWN: "U", MOD_UNTRACKED: "U",
MOD_ADDED: "A", MOD_ADDED: "A",
MOD_MODIFIED: "M", MOD_MODIFIED: "M",
MOD_REMOVED: "R", MOD_REMOVED: "R",
MOD_DELETED: "D", MOD_DELETED: "D",
MOD_STASHED: "S", MOD_STASHED: "S",
} }
statusSigns = map[string]string{ statusSigns = map[string]string{
@ -73,7 +73,7 @@ var (
} }
collectionStatus = []string{STATUS_AHEAD, STATUS_BEHIND, STATUS_DIVERGED, STATUS_UPTODATE} collectionStatus = []string{STATUS_AHEAD, STATUS_BEHIND, STATUS_DIVERGED, STATUS_UPTODATE}
collectionModifications = []string{MOD_ADDED, MOD_UNKNOWN, MOD_REMOVED, MOD_STASHED, MOD_DELETED, MOD_MODIFIED, MOD_CHANGED} collectionModifications = []string{MOD_ADDED, MOD_UNTRACKED, MOD_REMOVED, MOD_STASHED, MOD_DELETED, MOD_MODIFIED, MOD_CHANGED}
traverseResults = make(chan string, 10) traverseResults = make(chan string, 10)