mirror of
https://github.com/Luzifer/git-recurse-status.git
synced 2024-12-22 12:01:19 +00:00
Change "unknown" to "untracked" to be more in git language
This commit is contained in:
parent
72e4c38dfc
commit
554cda123f
1 changed files with 15 additions and 15 deletions
30
main.go
30
main.go
|
@ -23,13 +23,13 @@ const (
|
|||
STATUS_BEHIND = "behind"
|
||||
STATUS_UPTODATE = "uptodate"
|
||||
|
||||
MOD_UNKNOWN = "unknown"
|
||||
MOD_ADDED = "added"
|
||||
MOD_MODIFIED = "modified"
|
||||
MOD_REMOVED = "removed"
|
||||
MOD_DELETED = "deleted"
|
||||
MOD_STASHED = "stashed"
|
||||
MOD_CHANGED = "changed" // Special status to filter all repos having any changes
|
||||
MOD_UNTRACKED = "untracked"
|
||||
MOD_ADDED = "added"
|
||||
MOD_MODIFIED = "modified"
|
||||
MOD_REMOVED = "removed"
|
||||
MOD_DELETED = "deleted"
|
||||
MOD_STASHED = "stashed"
|
||||
MOD_CHANGED = "changed" // Special status to filter all repos having any changes
|
||||
|
||||
FILTER_REMOTE = "remote"
|
||||
)
|
||||
|
@ -44,7 +44,7 @@ var (
|
|||
}{}
|
||||
|
||||
porcelainFlags = map[string]string{
|
||||
"??": MOD_UNKNOWN,
|
||||
"??": MOD_UNTRACKED,
|
||||
"A ": MOD_ADDED,
|
||||
"M ": MOD_ADDED,
|
||||
" M": MOD_MODIFIED,
|
||||
|
@ -57,12 +57,12 @@ var (
|
|||
}
|
||||
|
||||
flagSigns = map[string]string{
|
||||
MOD_UNKNOWN: "U",
|
||||
MOD_ADDED: "A",
|
||||
MOD_MODIFIED: "M",
|
||||
MOD_REMOVED: "R",
|
||||
MOD_DELETED: "D",
|
||||
MOD_STASHED: "S",
|
||||
MOD_UNTRACKED: "U",
|
||||
MOD_ADDED: "A",
|
||||
MOD_MODIFIED: "M",
|
||||
MOD_REMOVED: "R",
|
||||
MOD_DELETED: "D",
|
||||
MOD_STASHED: "S",
|
||||
}
|
||||
|
||||
statusSigns = map[string]string{
|
||||
|
@ -73,7 +73,7 @@ var (
|
|||
}
|
||||
|
||||
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue