MCPcopy Create free account
hub / github.com/git/git / trailer_iterator_init

Function trailer_iterator_init

trailer.c:1219–1227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1217}
1218
1219void trailer_iterator_init(struct trailer_iterator *iter, const char *msg)
1220{
1221 struct process_trailer_options opts = PROCESS_TRAILER_OPTIONS_INIT;
1222 strbuf_init(&iter->key, 0);
1223 strbuf_init(&iter->val, 0);
1224 opts.no_divider = 1;
1225 iter->internal.trailer_block = trailer_block_get(&opts, msg);
1226 iter->internal.cur = 0;
1227}
1228
1229int trailer_iterator_advance(struct trailer_iterator *iter)
1230{

Callers 3

has_conforming_footerFunction · 0.85
t_trailer_iteratorFunction · 0.85

Calls 2

strbuf_initFunction · 0.85
trailer_block_getFunction · 0.85

Tested by

no test coverage detected