return 0;
}
-int parse_opt_commits(const struct option *opt, const char *arg, int unset)
-{
- struct object_id oid;
- struct commit *commit;
-
- if (!arg)
- return -1;
- if (get_oid(arg, &oid))
- return error("malformed object name %s", arg);
- commit = lookup_commit_reference(&oid);
- if (!commit)
- return error("no such commit %s", arg);
- commit_list_insert(commit, opt->value);
- return 0;
-}
-
int parse_opt_object_name(const struct option *opt, const char *arg, int unset)
{
struct object_id oid;