Re: [PATCH v2 3/4] diff: use skip_to_optional_val()

2017-12-04 Thread Junio C Hamano
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,

[PATCH v2 3/4] diff: use skip_to_optional_val()

2017-12-04 Thread Christian Couder
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.