Display git-like status only for unhandled worktree states

This commit is contained in:
Christian Muehlhaeuser
2019-08-04 14:16:49 +02:00
parent 4f40c1fcb0
commit 7a710dca15

View File

@@ -148,7 +148,6 @@ func main() {
changes := 0 changes := 0
msg := "" msg := ""
for path, s := range status { for path, s := range status {
log.Printf("%s %s %s\n", string(s.Worktree), string(s.Staging), path)
switch s.Worktree { switch s.Worktree {
case git.Untracked: case git.Untracked:
log.Printf("New file detected: %s\n", path) log.Printf("New file detected: %s\n", path)
@@ -179,6 +178,9 @@ func main() {
msg += fmt.Sprintf("Remove %s.\n", path) msg += fmt.Sprintf("Remove %s.\n", path)
changes++ changes++
default:
log.Printf("%s %s %s\n", string(s.Worktree), string(s.Staging), path)
} }
} }