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

Re: On commit, svn server to change line ending to unix style for .sh files.

From: Fu-Tung Cheng <futung.cheng_at_yahoo.com>
Date: Thu, 4 Sep 2008 13:36:14 -0700 (PDT)

That's what I was afraid of. Thank you for the suggestion.

Any idea if the server side enabling of this kind of thing is a feature on the roadmap for svn?

It seems to me that cvs had a way of doing this that didn't involve the client. I know adding new files doesn't happen all that often it is just nice to automate things that can be automated.

Thanks,

Fu-Tung

--- On Thu, 9/4/08, Ryan Schmidt <subversion-2008c_at_ryandesign.com> wrote:

> From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
> Subject: Re: On commit, svn server to change line ending to unix style for .sh files.
> To: futung.cheng_at_yahoo.com
> Cc: users_at_subversion.tigris.org
> Date: Thursday, September 4, 2008, 3:47 PM
> On Sep 4, 2008, at 10:39 AM, Fu-Tung Cheng wrote:
>
> > I would like the server to store files with the
> extension .sh as
> > unix style line endings even if those files are
> written on windows
> > and committed from windows.
> >
> > When I checkout on windows the .sh files should be in
> unix format
> > as I'd never want them in dos format.
> >
> > Is there a way to set this on the server side?
>
> No, but you can set it on the client side. Set the
> svn:eol-style
> property of these files to "LF". You can set up
> your client's auto-
> props to make this happen automatically for new files as
> you add
> them. You can also install a pre-commit hook to reject the
> commit of
> any .sh file that doesn't have this property set, if
> you want.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail:
> users-help_at_subversion.tigris.org

      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-04 22:37:01 CEST

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

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