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

Function nth_line

line-log.c:553–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551};
552
553static const char *nth_line(void *data, long line)
554{
555 struct nth_line_cb *d = data;
556 assert(d && line <= d->lines);
557 assert(d->spec && d->spec->data);
558
559 if (line == 0)
560 return (char *)d->spec->data;
561 else
562 return (char *)d->spec->data + d->line_ends[line] + 1;
563}
564
565static struct line_log_data *
566parse_lines(struct repository *r, struct commit *commit,

Callers 1

parse_locFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected