[jboss-jira] [JBoss JIRA] (DROOLS-146) Use .gitattributes to force linux line endings for all text files
Geoffrey De Smet (JIRA)
jira-events at lists.jboss.org
Thu Aug 22 11:08:26 EDT 2013
[ https://issues.jboss.org/browse/DROOLS-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Geoffrey De Smet updated DROOLS-146:
------------------------------------
Description:
With .gitattributes we can force all java files etc to have linux file endings.
I am experimenting with this in the optaplanner repository:
https://github.com/droolsjbpm/optaplanner/commit/40dca629262568d5e5abb379655d0ea65aef19a6
If it works well, we'll want to compile a good overall .gitattributes file and commit it to all droolsjbpm repositories.
During the refactor to .gitattributes, execute this script to detect and fix all previous errors:
https://help.github.com/articles/dealing-with-line-endings#re-normalizing-a-repository
*Important:*
In OptaPlanner we just committed the file without "fixing all previous errors". It turned out we had 2.
The person who adds the .gitattributes file doesn't get a problem, but other people who clone a new repository
get immediate modifications to incorrect files. This is a PITA.
So *after the commit .gitattributes files, all previous errors need to be fixed for and verified by doing a new clone and a git status on that new clone.*
was:
With .gitattributes we can force all java files etc to have linux file endings.
I am experimenting with this in the optaplanner repository:
https://github.com/droolsjbpm/optaplanner/commit/40dca629262568d5e5abb379655d0ea65aef19a6
If it works well, we'll want to compile a good overall .gitattributes file and commit it to all droolsjbpm repositories.
During the refactor to .gitattributes, execute this script to detect and fix all previous errors:
https://help.github.com/articles/dealing-with-line-endings#re-normalizing-a-repository
> Use .gitattributes to force linux line endings for all text files
> -----------------------------------------------------------------
>
> Key: DROOLS-146
> URL: https://issues.jboss.org/browse/DROOLS-146
> Project: Drools
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Reporter: Geoffrey De Smet
> Assignee: Geoffrey De Smet
>
> With .gitattributes we can force all java files etc to have linux file endings.
> I am experimenting with this in the optaplanner repository:
> https://github.com/droolsjbpm/optaplanner/commit/40dca629262568d5e5abb379655d0ea65aef19a6
> If it works well, we'll want to compile a good overall .gitattributes file and commit it to all droolsjbpm repositories.
> During the refactor to .gitattributes, execute this script to detect and fix all previous errors:
> https://help.github.com/articles/dealing-with-line-endings#re-normalizing-a-repository
> *Important:*
> In OptaPlanner we just committed the file without "fixing all previous errors". It turned out we had 2.
> The person who adds the .gitattributes file doesn't get a problem, but other people who clone a new repository
> get immediate modifications to incorrect files. This is a PITA.
> So *after the commit .gitattributes files, all previous errors need to be fixed for and verified by doing a new clone and a git status on that new clone.*
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list