The plugin is definitely supposed to handle all line endings kind.
I've boot up a windows 10 VM, cloned the git repo, built the whole sshd
project.
modified:
sshd-common/src/main/java/org/apache/sshd/common/cipher/package.html
modified:
sshd-common/src/main/java/org/apache/sshd/common/compression/package.html
modified:
sshd-common/src/main/java/org/apache/sshd/common/config/keys/loader/openssh/kdf/BCrypt.java
modified:
sshd-common/src/main/java/org/apache/sshd/common/digest/package.html
modified:
sshd-common/src/main/java/org/apache/sshd/common/mac/package.html
modified:
sshd-common/src/main/java/org/apache/sshd/common/random/package.html
modified:
sshd-common/src/main/java/org/apache/sshd/common/signature/package.html
So that does not look so terrible at this point.
I suppose if you check out a clean repo, you should have the same, and
those should be fixed anyway.
When working on an existing repo and modifying the .gitattributes, you may
need to use the --renormalize option as indicated in
https://help.github.com/en/github/using-git/configuring-git-to-handle-line-endings#refreshing-a-repository-after-changing-line-endings
to
fix the line endings.
After running git add --renormalize . , I only have the BCrypt.java file
which definitely has incorrect line endings.
Could you try a clean repo and/or using the --renormalize option ?
Le lun. 20 avr. 2020 à 20:46, Jonathan Valliere <[email protected]> a
écrit :
> Did you delete the whole repo and re-clone it? I have no idea, I don’t use
> Windows for anything relating to work.
>
> On Mon, Apr 20, 2020 at 1:49 PM Lyor Goldstein <[email protected]>
> wrote:
>
> > >> >>
> > https://stackoverflow.com/questions/21822650/disable-git-eol-conversions
> > >> >> You will probably have to checkout the repo again.
> >
> > >> Thx - I'll give it a try...
> >
> > No good - tried all sort of combinations for .gitconfig and
> .gitattributes
> > but none worked.... quite frustrating - makes no sense to commit 100's of
> > "changed" files - not to mention not being able to distinguish between
> real
> > changes and CRLF ones.... Feels like this auto-formatting is proving more
> > trouble than benefit...
> >
>
--
------------------------
Guillaume Nodet