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

Function line_log_data_copy_one

line-log.c:631–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629}
630
631static struct line_log_data *line_log_data_copy_one(struct line_log_data *r)
632{
633 struct line_log_data *ret = xmalloc(sizeof(*ret));
634
635 assert(r);
636 line_log_data_init(ret);
637 range_set_copy(&ret->ranges, &r->ranges);
638
639 ret->path = xstrdup(r->path);
640
641 return ret;
642}
643
644static struct line_log_data *
645line_log_data_copy(struct line_log_data *r)

Callers 1

line_log_data_copyFunction · 0.85

Calls 4

line_log_data_initFunction · 0.85
range_set_copyFunction · 0.85
xstrdupFunction · 0.85
xmallocFunction · 0.70

Tested by

no test coverage detected