Great discussion though, think more people could have had these problems. Maybe add something on the wiki or website about this,
On Tue, Aug 25, 2009 at 10:51 AM, Morten Maxild <[email protected]> wrote: > My mistake…false is the correct setting > > > > I must have been sleeping writing that…I guess I was thinking about the > mvccontrib clone (that uses true) I was just fighting yesterday..sry > > > ------------------------------ > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *James Gregory > *Sent:* Tuesday, August 25, 2009 10:40 AM > > *To:* [email protected] > *Subject:* [fluent-nhib] Re: Line ending settings for git repo > > > > Not sure what you mean Morten, we've been using false since we switched to > git several months ago; I'm pretty sure I would've noticed if visual studio > wasn't working by now. > > On Tue, Aug 25, 2009 at 9:33 AM, Morten Maxild <[email protected]> wrote: > > False is no good because the repo uses *nix LF-endings, and tools (e.g. > visual studio) can’t handle LF-endings > > > ------------------------------ > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *James Gregory > *Sent:* Tuesday, August 25, 2009 1:00 AM > > > *To:* [email protected] > *Subject:* [fluent-nhib] Re: Line ending settings for git repo > > > > If you're getting line ending issues you need to set core.autocrlf to false > > > > git config core.autocrlf false > > On Mon, Aug 24, 2009 at 11:46 PM, James Gregory <[email protected]> > wrote: > > There's also core.whitespace you could look at too. > > > > On Mon, Aug 24, 2009 at 11:44 PM, James Gregory <[email protected]> > wrote: > > That's quite strange, what's your core.autocrlf set to? > > > > On Mon, Aug 24, 2009 at 11:42 PM, Mikael Henriksson <[email protected]> > wrote: > > As soon as I save a file it says that the last line ending was removed! > Actually quite funny :) > > On Tue, Aug 25, 2009 at 12:29 AM, Mikael Henriksson <[email protected]> > wrote: > > So what does this mean? Can I finally use GIT without it complaining about > the line endings? > > I got scared when GIT complained about every file being changed and ran > away from using GIT, What is the workaround? > > > > On Mon, Aug 24, 2009 at 10:36 PM, Morten Maxild <[email protected]> wrote: > > Well both true and false, should work on windows, and false is in theory > (not in practice) better if git is guessing wrong and converts something > that can’t be converted back. > > > > Do you know if people that are cloning (and maybe contributing) can tell by > a ‘standard method’ whether to use true or false? I have tried to guess > wrong, and only find out later (I way to learn git the hard way, but not a > nice way) > > > ------------------------------ > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *James Gregory > *Sent:* Monday, August 24, 2009 10:14 PM > > > *To:* [email protected] > *Subject:* [fluent-nhib] Re: Line ending settings for git repo > > > > I tried to get a consensus of which .Net OSS projects were using which > setting, but nobody really got back to me on it. I'm not so bothered if > we're not the only one with it set to false. > > On Mon, Aug 24, 2009 at 8:56 PM, Morten Maxild <[email protected]> wrote: > > But everyone but a first-time user will eventually care about this setting > at the repo level, because the global (maybe by default, if unset) setting > will not work with many projects….in my case spark uses false, mvccontrib > uses true, and FNH uses false > > > > The sooner you understand the setting the less time you will waste….I sure > have wasted time beginning using git with ‘funny’ diffs, and ‘less-funny’ > commits > > > > > ------------------------------ > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *James Gregory > *Sent:* Monday, August 24, 2009 9:48 PM > > > *To:* [email protected] > *Subject:* [fluent-nhib] Re: Line ending settings for git repo > > > > I would've preferred to have it unset, whatever that setting is (I assume > true). > > > > We are an exclusive windows project, but it's one more thing for a > contributor to have to remember. > > On Mon, Aug 24, 2009 at 8:36 PM, Morten Maxild <[email protected]> wrote: > > So you would have preferred ‘true’ to begin with? > > > > I say keep it, as long as we are dealing with a pure windows platform > project (are we?) > > > ------------------------------ > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *James Gregory > *Sent:* Monday, August 24, 2009 9:34 PM > *To:* [email protected] > *Subject:* [fluent-nhib] Re: Line ending settings for git repo > > > > It is, yes. > > > > I'm not sure how we got into this situation, and I'm not sure what to do > about it either. We can leave it as-is and continue to confuse first time > forkers, or we can change it back to how it should be and suffer the massive > every-line-in-the-project-has-changed commit. > > On Mon, Aug 24, 2009 at 8:08 PM, Morten Maxild <[email protected]> wrote: > > Hi, > > > > Is it correct to define core.autocrlf=false for a clone? > > > > Regards > > Maxild > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---
