| 1662 | } |
| 1663 | |
| 1664 | static 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 | |
| 1679 | static int base_callback(const struct option *opt, const char *arg, int unset) |
| 1680 | { |
nothing calls this directly
no test coverage detected