| 71 | } |
| 72 | |
| 73 | static void delete_file_at(const char *rel_path) { |
| 74 | char path[512]; |
| 75 | snprintf(path, sizeof(path), "%s/%s", g_repodir, rel_path); |
| 76 | unlink(path); |
| 77 | } |
| 78 | |
| 79 | /* Append "# reformatted" to up to max_files .py files in subdir (cross-platform). */ |
| 80 | static int reformat_files(const char *subdir, int max_files) { |