Carlos Rica, Sat, Mar 01, 2008 17:29:38 +0100:
Show 12 quoted lines
> @@ -169,40 +173,31 @@ static const char *reset_type_names[] = { "mixed", "soft", "hard", NULL };
>
> int cmd_reset(int argc, const char **argv, const char *prefix)
> {
> - int i = 1, reset_type = NONE, update_ref_status = 0, quiet = 0;
> + int i = 0, reset_type = NONE, update_ref_status = 0, quiet = 0;
> const char *rev = "HEAD";
> unsigned char sha1[20], *orig = NULL, sha1_orig[20],
> *old_orig = NULL, sha1_old_orig[20];
> struct commit *commit;
> char *reflog_action, msg[1024];
> + struct option options[] = {