| 164 | } watcher_git_status_t; |
| 165 | |
| 166 | static void watcher_git_output_cleanup(watcher_git_output_t *output) { |
| 167 | if (output && output->path[0]) { |
| 168 | (void)cbm_unlink(output->path); |
| 169 | output->path[0] = '\0'; |
| 170 | output->size = 0; |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | static bool watcher_git_output_create(watcher_git_output_t *output) { |
| 175 | if (!output) { |
no test coverage detected