On 02/13/2010 01:28 PM, Johan Herland wrote: > @@ -199,6 +203,40 @@ static int parse_file_arg(const struct option *opt, const char *arg, int unset) > return 0; > } > > +static int parse_reuse_arg(const struct option *opt, const char *arg, int unset) > +{ > + struct msg_arg *msg = opt->value; > + char *buf; > + unsigned char object[20]; > + enum object_type type; > + unsigned long len; > + > + if (!arg) > + return -1; This is impossible unless you're using the PARSE_OPT_OPTARG flag or allowing negation (i.e. --no-reuse-mesage). You should probably make the two callback options PARSE_OPT_NONEG and then drop this if statement. Same applies to some of the other callbacks not introduced in this patch. > + > + if (msg->buf.len) > + strbuf_addstr(&(msg->buf), "\n"); > + Use strbuf_addch()? I saw this in a couple other patches too. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html