6
6
``bzr help content-filters`` for general information about using these.
8
8
Note: Content filtering is only supported in recently added formats,
9
e.g. 1.14. Be sure that both the repository *and* the branch are
10
in a recent format. (Just setting the format on the repository
11
is not enough.) If content filtering does not appear to be working, use
12
'bzr info -v' to confirm that the branch is using "Working tree format 5"
11
EOL conversion needs to be enabled for selected branches and files using
15
EOL conversion needs to be enabled for selected file patterns using
12
16
rules. See ``bzr help rules`` for general information on defining rules.
17
Currently, rules are only supported in $BZR_HOME/.bazaar/rules (or
18
%BZR_HOME%/bazaar/2.0/rules on Windows). Branch specific rules will be
19
supported in a future verison of Bazaar.
14
21
To configure which files to filter, set ``eol`` to one of the values below.
15
22
(If a value is not set, ``exact`` is the default.)
17
============== ============================== ======================
18
Value Checkout end-of-lines as Commit end-of-lines as
19
============== ============================== ======================
20
native crlf on Windows, lf otherwise lf
21
-------------- ------------------------------ ----------------------
23
-------------- ------------------------------ ----------------------
25
-------------- ------------------------------ ----------------------
26
exact No conversion exactly as in file
27
============== ============================== ======================
24
========== ===================================== ======================
25
Value Checkout end-of-lines as Commit end-of-lines as
26
========== ===================================== ======================
27
``native`` ``crlf`` on Windows, ``lf`` otherwise ``lf``
28
---------- ------------------------------------- ----------------------
30
---------- ------------------------------------- ----------------------
31
``crlf`` ``crlf`` ``lf``
32
---------- ------------------------------------- ----------------------
33
``exact`` No conversion Exactly as in file
34
========== ===================================== ======================
29
36
Note: For safety reasons, no conversion is applied to any file where a null
30
37
byte is detected in the file.
84
91
If you have an existing repository with text files already stored using
85
Windows newline conventions (crlf), then you may want to keep using that
92
Windows newline conventions (``crlf``), then you may want to keep using that
86
93
convention in the repository. Forcing certain files to this convention
87
94
may also help users who do not have rules configured. To do this, set
88
95
``eol`` to one of the values below.
90
========================= ============================== ======================
91
Value Checkout end-of-lines as Commit end-of-lines as
92
========================= ============================== ======================
93
native-with-crlf-in-repo crlf on Windows, lf otherwise crlf
94
------------------------- ------------------------------ ----------------------
95
lf-with-crlf-in-repo lf crlf
96
------------------------- ------------------------------ ----------------------
97
crlf-with-crlf-in-repo crlf crlf
98
========================= ============================== ======================
97
============================ ======================== ======================
98
Value Checkout end-of-lines as Commit end-of-lines as
99
============================ ======================== ======================
100
``native-with-crlf-in-repo`` ``crlf`` on Windows, ``crlf``
102
---------------------------- ------------------------ ----------------------
103
``lf-with-crlf-in-repo`` ``lf`` ``crlf``
104
---------------------------- ------------------------ ----------------------
105
``crlf-with-crlf-in-repo`` ``crlf`` ``crlf``
106
============================ ======================== ======================
100
108
For users working on an existing project that uses Windows newline
101
109
conventions in their Bazaar repository, this rule is suggested as a
105
113
eol = native-with-crlf-in-repo
107
For new projects, it is recommended that end-of-lines be stored as lf
115
For new projects, it is recommended that end-of-lines be stored as ``lf``
108
116
and that users stick to the basic settings, i.e. ``native``, ``lf``,
109
117
``crlf`` and ``exact``.