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

Function from_callback

builtin/log.c:1664–1677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1662}
1663
1664static int from_callback(const struct option *opt, const char *arg, int unset)
1665{
1666 char **from = opt->value;
1667
1668 free(*from);
1669
1670 if (unset)
1671 *from = NULL;
1672 else if (arg)
1673 *from = xstrdup(arg);
1674 else
1675 *from = xstrdup(git_committer_info(IDENT_NO_DATE));
1676 return 0;
1677}
1678
1679static int base_callback(const struct option *opt, const char *arg, int unset)
1680{

Callers

nothing calls this directly

Calls 2

xstrdupFunction · 0.85
git_committer_infoFunction · 0.85

Tested by

no test coverage detected