- unsigned char sha1[20], old_sha1[20];
- char rev_range[2 * 40 + 3];
- char *rev_argv[] = { NULL, "--reverse", "--format=email", rev_range };
+ struct object_id new_rev_oid, old_rev_oid;
+ char rev_range[REV_RANGE_LEN];
+ const char *rev_argv[] = { NULL, "--reverse", "--format=email", rev_range, "--", prefix, NULL };
+ int rev_argc = ARRAY_SIZE(rev_argv) - 1;