MCPcopy Index your code
hub / github.com/git/git / write_section

Function write_section

config.c:2736–2746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2734}
2735
2736static 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
2748static ssize_t write_pair(int fd, const char *key, const char *value,
2749 const char *comment,

Calls 3

store_create_sectionFunction · 0.85
write_in_fullFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected