(filename string)
| 26 | return nil, fmt.Errorf("%s", msg) |
| 27 | } |
| 28 | return out, nil |
| 29 | } |
| 30 | |
| 31 | // FileStatus is a file reported by `git status`, eligible to be staged. |
| 32 | type FileStatus struct { |
| 33 | Path string |
| 34 | Status string // raw two-letter porcelain status, e.g. "M ", "??", " D" |
| 35 | } |
| 36 | |
| 37 | // GetAvailableFiles lists every file git status reports as changed |
no outgoing calls
no test coverage detected