[phobos] [dmd-internals] svn-->git migration
Sean Kelly
sean at invisibleduck.org
Mon Jan 24 08:43:46 PST 2011
In SVN you can set eol-style to native, and it converts line endings when the repos is retrieved, I believe. Maybe we'll just have to standardize on \n?
On Jan 23, 2011, at 8:42 PM, Jason Evans wrote:
> On 01/23/2011 08:28 PM, Walter Bright wrote:
>> How do we set things so that line endings are automatically normalized
>> to LF?
>
> You mean, something similar to a subversion commit hook script that re-writes the commit on the fly? I don't think we'll be able to do that in general, due to the distributed nature of git. Here is a relevant github support discussion:
>
> http://support.github.com/discussions/feature-requests/686-pre-commit-hooks
>
> The core of the problem is that an entire series of changes (including arbitrarily complex forking/merging) can be performed in a local repository, then pushed to github all at once. Therefore, normalization would have to do some non-trivial history rewriting, which would then cause divergence from the repository the changes were pushed from.
>
> Thanks,
> Jason
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
More information about the phobos
mailing list