systemml-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Dusenberry <dusenberr...@gmail.com>
Subject Normalization of Line Endings
Date Fri, 22 Jan 2016 16:46:08 GMT
Hi all,

As noted in the release candidate thread, there was an issue with the
"standalone" package in which the "runStandaloneSystemML.sh" script could
not be run on Linux/OS X due to the inclusion of Windows-styled carriage
returns within the file.  To fix this issue and prevent it in the future,
I've pushed a new ".gitattributes" file that contains logic to cause Git
enforce Unix-styled line endings for all files (other than Windows-specific
ones) upon check-in to the repo.  Basically, on checkout, Git will use the
OS-specific line endings as necessary, and on check-in, Git will replace
any carriage returns with Unix line feeds.

There is one caveat though.  If you use the built-in Git feature within
Eclipse, the ".gitattributes" fill will not be used.  The "real" Git does
indeed use this file, but "JGit", the Java-based implementation of the Git
specification that Eclipse uses, does not yet have this capability
according to this open issue: [
https://bugs.eclipse.org/bugs/show_bug.cgi?id=342372].  Therefore, for
those in this situation on Windows, it would be advisable to either use the
command-line version of Git, or to ensure that Eclipse is inserting
Unix-styled line endings.


Thanks!

- Mike

--

Mike Dusenberry
GitHub: github.com/dusenberrymw
LinkedIn: linkedin.com/in/mikedusenberry

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message