37
struct repository *repo UNUSED)
38
{
39
struct diff_options diffopt = { NULL };
40
- struct strvec other_arg = STRVEC_INIT;
40
+ struct strvec log_arg = STRVEC_INIT;
41
struct strvec diff_merges_arg = STRVEC_INIT;
42
struct range_diff_options range_diff_opts = {
43
.creation_factor = RANGE_DIFF_CREATION_FACTOR_DEFAULT,
44
.max_memory = RANGE_DIFF_MAX_MEMORY_DEFAULT,
45
.diffopt = &diffopt,
46
- .other_arg = &other_arg
46
+ .log_arg = &log_arg
47
};
48
int simple_color = -1, left_only = 0, right_only = 0;
49
struct option range_diff_options[] = {
52
N_("percentage by which creation is weighted")),
53
OPT_BOOL(0, "no-dual-color", &simple_color,
54
N_("use simple diff colors")),
55
- OPT_PASSTHRU_ARGV(0, "notes", &other_arg,
55
+ OPT_PASSTHRU_ARGV(0, "notes", &log_arg,
56
N_("notes"), N_("passed to 'git log'"),
57
PARSE_OPT_OPTARG),
58
OPT_PASSTHRU_ARGV(0, "diff-merges", &diff_merges_arg,
92
/* If `--diff-merges` was specified, imply `--merges` */
93
if (diff_merges_arg.nr) {
94
range_diff_opts.include_merges = 1;
95
- strvec_pushv(&other_arg, diff_merges_arg.v);
95
+ strvec_pushv(&log_arg, diff_merges_arg.v);
96
}
97
98
for (i = 0; i < argc; i++)
124
strbuf_addf(&range1, "%s..%s", argv[0], argv[1]);
125
strbuf_addf(&range2, "%s..%s", argv[0], argv[2]);
126
127
- strvec_pushv(&other_arg, argv +
127
+ strvec_pushv(&log_arg, argv +
128
(dash_dash < 0 ? 3 : dash_dash));
129
} else if (dash_dash == 2 ||
130
(dash_dash < 0 && argc > 1 &&
144
strbuf_addstr(&range1, argv[0]);
145
strbuf_addstr(&range2, argv[1]);
146
147
- strvec_pushv(&other_arg, argv +
147
+ strvec_pushv(&log_arg, argv +
148
(dash_dash < 0 ? 2 : dash_dash));
149
} else if (dash_dash == 1 ||
150
(dash_dash < 0 && argc > 0 &&
175
strbuf_addf(&range1, "%s..%.*s", b, a_len, a);
176
strbuf_addf(&range2, "%.*s..%s", a_len, a, b);
177
178
- strvec_pushv(&other_arg, argv +
178
+ strvec_pushv(&log_arg, argv +
179
(dash_dash < 0 ? 1 : dash_dash));
180
} else
181
usage_msg_opt(_("need two commit ranges"),
187
range_diff_opts.right_only = right_only;
188
res = show_range_diff(range1.buf, range2.buf, &range_diff_opts);
189
190
- strvec_clear(&other_arg);
190
+ strvec_clear(&log_arg);
191
strvec_clear(&diff_merges_arg);
192
strbuf_release(&range1);
193
strbuf_release(&range2);