[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Extra options for libsvn_diff

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2006-02-16 02:24:57 CET

Peter N. Lundblad wrote:
>
> I've been spending some time in libsvn_diff/diff_file.c implementing
> options to ignore whitespace, eol-style

Excellent.

> and the -p option of GNU diff (--show-c-function).

I have to say I'm not at all keen on this, despite agreeing that it's useful to
me and many of us in this community. I've written a whole essay of a reply,
but I won't send that until I've slept on it.

> +/* Id for the --ignore-eol-style option, which doesn't have a short name. */
> +#define SVN_DIFF__OPT_IGNORE_EOL_STYLE 256
> +/* Options supported by svn_diff_file_options_parse(). */
> +static const apr_getopt_option_t diff_options[] =

Style nit: I'd prefer a blank line between one item that is commented on a
separate line and the next. (Several such places.)

> +{
> + { "ignore-space-change", 'b', 0, NULL },
> + { "ignore-all-space", 'w', 0, NULL },
> + { "ignore-eol-style", SVN_DIFF__OPT_IGNORE_EOL_STYLE, 0, NULL },
> + { "show-c-function", 'p', 0, NULL },
> + /* ### For compatibility; we don't support the argument to -u, because
> + * ### we don't have optional argument support. */
> + { "unified", 'u', 0, NULL },

Current GNU diff doesn't accept an argument to "-u", but instead has a separate
short option name "-U NUM", so I don't think you need that "###" comment.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 16 02:25:19 2006

This is an archived mail posted to the Subversion Dev mailing list.