Monday, 15 September 2014

eclipse - How to remove \r when pushing commits to Gerrit from Windows? -



eclipse - How to remove \r when pushing commits to Gerrit from Windows? -

i , colleague of mine work in eclipse on windows machines.

when force changes gerrit, there \r marks in source view.

when colleague same, there no such characters.

the git settings on both machines equal to:

$ git config --global --get core.eol native $ git config --global --get core.autocrlf false $ git config --global --get core.whitespace

i'm using next eclipse settings.

i tried run file -> convert line delimiters -> windows, didn't help (git status didn't show modified files after did this).

how can create sure when commit changes, there no \r characters in gerrit?

the \r because windows line endings \r\n (vs. unix line endings \n) switch unix line endings have commit files.

gerrit has alternative hide line endings, it's under preferences when you're in source view. seems best option.

eclipse git gerrit

No comments:

Post a Comment