Christian Couder writes:
> @@ -4540,13 +4535,13 @@ int diff_opt_parse(struct diff_options *options,
> return stat_opt(options, av);
>
> /* renames options */
> - else if (starts_with(arg, "-B") || starts_with(arg,
> "--break-rewrites=") ||
> - !strcmp(arg,
From: Christian Couder
Let's simplify diff option parsing using
skip_to_optional_val().
Signed-off-by: Christian Couder
---
diff.c | 29 ++---
1 file changed, 10 insertions(+), 19 deletions(-)
diff --git a/diff.c b/diff.c
index 2ebe2227b4..83509f0658 100644
--- a/diff.
2 matches
Mail list logo