On Thu, Aug 04, 2005 at 04:13:49PM +0100, Phil Brooke wrote:
> Hi,
> 
> I've been trying to think about multiplatform development using DARCS. 
> There seems to have been occasionally flurries of emails about line-end
> conventions and DARCS, but I'm still a bit confused: are the following
> assumptions correct?
> 
>   - If a new filename (in an `add' operation) matches a regexp in
>     _darcs/prefs/binaries, it's a binary file.  Otherwise, search for
>     hex 00 or hex 1a: if such characters exist, it's a binary file.
>     Otherwise, it's a text file.

Yes... this is true of both new and old files.

>   - Text files can become binary files if hex 00 or hex 1a are
>     inserted.  (I.e., the patch is a binary patch if those characters
>     are included).

Right.

>   - Once a binary file, always a binary file.  I.e., if there are any
>     binary patches for a file, it's binary.  (Does darcs check through
>     each patch file to determine this?)

Wrong.  A file can go back and forth between being binary and text.

>   - The diffs for hunks are on the basis of LFs.  So CRLFs are
>     effectively line ends, as are LFs alone, but CRs will not be.  So
>     old-style Macs with CRs will essentially have files represented as
>     one big line.

Right.

>   - If CRLFs are swapped for LFs or vice versa in an editor, then each
>     line will be modified in the patch.

Yes, because the CR is considered part of the line itself (the last
character) so you would be modify each line.
-- 
David Roundy
http://www.darcs.net

_______________________________________________
darcs-users mailing list
[email protected]
http://www.abridgegame.org/mailman/listinfo/darcs-users

Reply via email to