| 2734 | } |
| 2735 | |
| 2736 | static ssize_t write_section(int fd, const char *key, |
| 2737 | const struct config_store_data *store) |
| 2738 | { |
| 2739 | struct strbuf sb = store_create_section(key, store); |
| 2740 | ssize_t ret; |
| 2741 | |
| 2742 | ret = write_in_full(fd, sb.buf, sb.len); |
| 2743 | strbuf_release(&sb); |
| 2744 | |
| 2745 | return ret; |
| 2746 | } |
| 2747 | |
| 2748 | static ssize_t write_pair(int fd, const char *key, const char *value, |
| 2749 | const char *comment, |
no test coverage detected