| 1448 | } |
| 1449 | |
| 1450 | static void show_file(const char * fmt, const char * name, int in_porcelain, |
| 1451 | int * first, const char *header_msg) |
| 1452 | { |
| 1453 | if (in_porcelain && *first && header_msg) { |
| 1454 | printf("%s\n", header_msg); |
| 1455 | *first = 0; |
| 1456 | } |
| 1457 | printf(fmt, name); |
| 1458 | } |
| 1459 | |
| 1460 | int repo_refresh_and_write_index(struct repository *repo, |
| 1461 | unsigned int refresh_flags, |