Author Topic: Possible linefeeds issues in SVN repo  (Read 4720 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Possible linefeeds issues in SVN repo
« on: April 12, 2023, 04:59:38 pm »
I am doing some SVN to Git building and I think these files have linefeed issues.

Tim S.

Code
dos2unix src/sdk/cbart_provider.cpp && \
dos2unix src/include/cbart_provider.h && \
dos2unix src/include/cygwin.h && \
dos2unix src/include/editor_utils.h && \
dos2unix src/include/wxstringhash.h
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1632
Re: Possible linefeeds issues in SVN repo
« Reply #1 on: April 12, 2023, 06:03:50 pm »
The cpp file has mixed line endings, the others look good. For example (on MSW):
Code
$ file cbart_provider.cpp
cbart_provider.cpp: C source, ASCII text, with CRLF, LF line terminators
$ file wxstringhash.h
wxstringhash.h: C++ source, ASCII text, with CRLF line terminators

EDIT: cbart_provider.cpp fixed in r13256.
« Last Edit: April 12, 2023, 06:09:38 pm by Miguel Gimenez »

Offline sodev

  • Lives here!
  • ****
  • Posts: 500
Re: Possible linefeeds issues in SVN repo
« Reply #2 on: April 12, 2023, 06:49:44 pm »
The other files don't have eol-style set, on my windows i got them with LF line endings.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1632
Re: Possible linefeeds issues in SVN repo
« Reply #3 on: April 12, 2023, 07:28:14 pm »
r13257: Set svn:eol-style to native and svn:keywords to "Date Revision Author URL Id" in the .h files above so they match others.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Re: Possible linefeeds issues in SVN repo
« Reply #4 on: April 12, 2023, 07:37:14 pm »
Thank both for the changes.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org