line endings
Marcus Sundman
sundman at iki.fi
Thu Jan 31 16:03:11 GMT 2008
> > > I really think a VCS should track the content of a file and must
> > > not change its content in whatsoever way. IMHO its not the job of
> > > a VCS to take care of such things like line endings.
> >
> > Some people think different.
>
> Perhaps having a repository-level option for how line endings are
> treated for filenames matching a particular regex would be a good way
> to go?
First of all you need path matching (not just filename matching), but I
still don't think it'd be a good idea. First of all bazaar has to
support the line break type metadata (preferably as an option to a
proper file type metadata, e.g. something along the lines of
"content-type: text/html; charset=utf-8; linebreaks=lf"). Then the
actual decision whether to do any conversion or not should be specified
client-side (e.g. because the repo admin shouldn't dictate what line
breaks the users use locally). Some client implementation might use
some kind of regex matching of path/name/type, whereas some other
implementation could use a per-file and/or per-dir option, or whatever.
- Marcus
More information about the bazaar
mailing list