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