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

Re: [PATCH] Allow export to export svn:eol-style=native files with a user suplied eol marker.

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2004-04-04 21:53:55 CEST

Greg Hudson <ghudson@MIT.EDU> writes:

> On Sun, 2004-04-04 at 15:43, Philip Martin wrote:
>> Rather than do
>>
>> if (native_eol == lf)
>> ...
>> else if (native_eol == cr)
>> ...
>> else if (native_eol == crlf)
>> ...
>>
>> call
>> svn_subst_eol_style_native (native_eol)
>
> But that makes no sense. svn_subst_eol_style_native is an enum
> constant, not a function name, and I can't find a similarly-named
> function that might do what you say.

Oops, typo. I understand your confusion. I was trying to suggest

    svn_subst_eol_style_from_value (NULL, eol, native_eol)

+static void
+get_eol_style (svn_subst_eol_style_t *style,
+ const char **eol,
+ const char *value,
+ const char *native_eol)
+{
+ svn_subst_eol_style_from_value (style, eol, value);
+ if (native_eol && *style == svn_subst_eol_style_native)
+ svn_subst_eol_style_from_value (NULL, eol, native_eol)
+}

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Apr 4 21:54:13 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.