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

Function add_rev_cmdline

revision.c:1521–1536  ·  view source on GitHub ↗

* Add an entry to refs->cmdline with the specified information. * *name is copied. */

Source from the content-addressed store, hash-verified

1519 * *name is copied.
1520 */
1521static void add_rev_cmdline(struct rev_info *revs,
1522 struct object *item,
1523 const char *name,
1524 int whence,
1525 unsigned flags)
1526{
1527 struct rev_cmdline_info *info = &revs->cmdline;
1528 unsigned int nr = info->nr;
1529
1530 ALLOC_GROW(info->rev, nr + 1, info->alloc);
1531 info->rev[nr].item = item;
1532 info->rev[nr].name = xstrdup(name);
1533 info->rev[nr].whence = whence;
1534 info->rev[nr].flags = flags;
1535 info->nr++;
1536}
1537
1538static void add_rev_cmdline_list(struct rev_info *revs,
1539 struct commit_list *commit_list,

Callers 6

add_rev_cmdline_listFunction · 0.85
handle_one_refFunction · 0.85
add_one_alternate_refFunction · 0.85
add_parents_onlyFunction · 0.85
handle_dotdot_1Function · 0.85
handle_revision_arg_1Function · 0.85

Calls 1

xstrdupFunction · 0.85

Tested by

no test coverage detected