There does seem to be a bit of a mess here. I noticed lots of ^Ms in the gradle files for example (I'm really not trying to put blame on anyone, just explain what I see)
I don't complain about it, my vim setup detects the file as DOS and then just continues with the trend, but for sure its strange to have some source files with DOS line endings and other ones with UNIX line endings, depending on who created the files. I see it when reviewing my stuff with 'git diff'... For example: gradle/testing/defaults-tests.gradle: UNIX line endings gradle/testing/failed-tests-at-end.gradle: DOS line endings I also think its confusing to have gitattributes at the root and then also under solr/ can we just have one gitattributes file at the root? There shouldn't be that many files that require explicit line endings settings (e.g. .cmd files come to mind). On Mon, Jan 27, 2020 at 7:48 AM Dawid Weiss <dawid.we...@gmail.com> wrote: > > auto for .adoc files will guard us from a Windows user checking in an > .adoc file with CRLF ending in the future, won’t it? > > The current rule applies to all files not explicitly listed -- I think > this is wrong. You can add adoc explicitly but don't apply it to the > world at large... > > > Or do you mean that it now creates issues for Windows users in some way? > > It created an issue for me in that I spent two hours looking for a bug > in the wrong place... and the same problems with auto-magical git > conversions happen *over and over* for me in multiple projects -- it's > not the first time. > > It is really hard to figure out what's going on when you stumble upon > a problem like this. Also, like I said previously, I don't trust all > git implementations and versions to handle those directives > identically (jgit in particular). I don't mind those rules as long as > they create identical repository on local clone/reset. This means all > hashes of all files should be identical: windows or linux. If they're > not the same it's potentially trouble. > > If we're so concerned about CRLF then I'd say add such rules to > precommit check (I can do it, no problem) but those automatic > conversions are/will be a constant trouble. > > D. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org > For additional commands, e-mail: dev-h...@lucene.apache.org > >