Navigation

You are here: Home / Public Wiki / SubversionConfig

SubversionConfig

Subversion can take care of different line ending styles in different operating systems. To enable this feature for newly created files, the configuration file must be edited (see the example below):

Linux: $HOME/.subversion/config

Windows (modify path according to your system): C:\Documents and Settings\grabner\Anwendungsdaten\Subversion\config

For more information, see the following links:

  • subversion property system: http://svnbook.red-bean.com/en/1.1/ch07s02.html
  • eol-style property (line ending style): http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3.5
  • configuration file: http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1.3.2

example config:

### Set enable-auto-props to "yes" to enable automatic properties
### for "svn add" and "svn import", it defaults to "no".
### Automatic properties are defined in the section "auto-props".
enable-auto-props = yes

### Section for configuring automatic properties. [auto-props] ### The format of the entries is: ### file-name-pattern = propname[=value][;propname[=value]...] ### The file-name-pattern can contain wildcards (such as "*" and ### "?"). All entries which match will be applied to the file. ### Note that auto-props functionality must be enabled, which ### is typically done by setting the "enable-auto-props" option. *.c = svn:eol-style=native *.cpp = svn:eol-style=native *.h = svn:eol-style=native *.dsp = svn:eol-style=CRLF *.dsw = svn:eol-style=CRLF *.sh = svn:eol-style=LF;svn:executable *.txt = svn:eol-style=native *.xml = svn:eol-style=native *.png = svn:mime-type=image/png *.jpg = svn:mime-type=image/jpeg Makefile = svn:eol-style=native

*.bib = svn:eol-style=native *.cg = svn:eol-style=native *.cmake = svn:eol-style=native *.cu = svn:eol-style=native *.cuh = svn:eol-style=native *.cxx = svn:eol-style=native *.glsl = svn:eol-style=native *.hpp = svn:eol-style=native *.hxx = svn:eol-style=native *.iv = svn:eol-style=native *.m = svn:eol-style=native *.tex = svn:eol-style=native *.wrl = svn:eol-style=native *.xml = svn:eol-style=native *.spec = svn:eol-style=native *.spec.in = svn:eol-style=native CMakeLists.txt = svn:eol-style=native

Document Actions

[Powered by Plone]