I know about crnl-glob. But it is a completely different issue than autocrlf (like with Git).
As for the hash mismatch this is just a minor technical issue easily solved. The hash would have to calculated after stripping off all CRs (Win/DOS) or converting to LFs (Macs) in text files. Then it will always match the repo hash. On the other hand, having this capability allows for better cross-platform project support. Some tools (compilers, assemblers, editors) can deal with any type of line endings so text saved in a different platform is not an issue. But, this is not a universal rule. There are many cases where those tools will misbehave on unexpected line endings. And if one decides to convert the file to their own platform, and submit, it will look as if every single line has changed even if nothing’s changed. (I’ve mentioned this problem before.) Anyway, I hope fossil wasn’t only meant to be used by fossil and sqlite but has broader aspirations, and someone will see merit in putting this in todo list. Thanks. From: Stephan Beal Sent: Saturday, June 07, 2014 1:19 AM To: Fossil SCM user's discussion Subject: Re: [fossil-users] autocrlf like in Git? On Sat, Jun 7, 2014 at 12:15 AM, <to...@acm.org> wrote: Does fossil support or has plans to support autocrlf (like Git)? (Text files internally saved always with Linux line endings, but extracted as Win, Linux, Mac line endings depending on the platform FOSSIL runs on) Fossil does _no_ conversion of the content because doing so would change its hash compared to the on-disk file. But see: fossil help set ... crnl-glob A comma or newline-separated list of GLOB patterns for (versionable) text files in which it is ok to have CR, CR+NL or mixed line endings. Set to "*" to disable CR+NL checking. Without that, fossil will notice and complain about mixed-mode files. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf -------------------------------------------------------------------------------- _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users