We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf81f94 commit 1efad51Copy full SHA for 1efad51
diff.c
@@ -4563,11 +4563,10 @@ int diff_opt_parse(struct diff_options *options,
4563
options->flags.rename_empty = 1;
4564
else if (!strcmp(arg, "--no-rename-empty"))
4565
options->flags.rename_empty = 0;
4566
- else if (!strcmp(arg, "--relative"))
+ else if (skip_to_optional_arg_default(arg, "--relative", &arg, NULL)) {
4567
options->flags.relative_name = 1;
4568
- else if (skip_prefix(arg, "--relative=", &arg)) {
4569
- options->flags.relative_name = 1;
4570
- options->prefix = arg;
+ if (arg)
+ options->prefix = arg;
4571
}
4572
4573
/* xdiff options */
0 commit comments