[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: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Thu, 4 Sep 2008 10:47:03 -0500

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
Received on 2008-09-04 17:47:31 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.