mirror of
https://github.com/taigrr/gitomatic.git
synced 2026-04-02 03:09:10 -07:00
Display git-like status only for unhandled worktree states
This commit is contained in:
4
main.go
4
main.go
@@ -148,7 +148,6 @@ func main() {
|
||||
changes := 0
|
||||
msg := ""
|
||||
for path, s := range status {
|
||||
log.Printf("%s %s %s\n", string(s.Worktree), string(s.Staging), path)
|
||||
switch s.Worktree {
|
||||
case git.Untracked:
|
||||
log.Printf("New file detected: %s\n", path)
|
||||
@@ -179,6 +178,9 @@ func main() {
|
||||
|
||||
msg += fmt.Sprintf("Remove %s.\n", path)
|
||||
changes++
|
||||
|
||||
default:
|
||||
log.Printf("%s %s %s\n", string(s.Worktree), string(s.Staging), path)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user