Re: Gitlab News

Alex Henrie <[email protected]>
Newsgroups gmane.comp.emulators.wine.devel
Message-ID <CAMMLpeRrVPgucFtdYdAoaKqVykS4kk7cwMF-ii9bje=UC3Ybag@mail.gmail.com>
On Thu, Sep 12, 2024 at 5:23 AM Eric Pouech <[email protected]> wrote:

> some updates (eg [1] done from web interface) have a diff that appears
> with all lines touched (which is not the case)
>
> the modified files have now CRLF line termination (while untouched haven't)
>
> is that something we want to change to have better history view?
>
>
> [1]
> https://gitlab.winehq.org/wine/wine/-/wikis/Wine-Developer's-Guide/Debugging-Wine/diff?version_id=adbf744d1d2ae02da245be29bdbfd2bf366793d5

As a workaround, you can click the "Hide whitespace changes" button.
But it's a little insane that GitLab saves wiki pages with CRLF line
endings, as can be seen when downloading the Markdown source file for
the page.[1]

I see that the wiki is actually a Git repository located at
<ssh://[email protected]/wine/wine.wiki.git>. Could we push a
.gitattributes file to that repository with the line "* text=auto" to
make it use Unix line endings? [2] At the same time, it will be
necessary to run dos2unix over any files that have been accidentally
converted to CRLF and recommit them.

-Alex

[1] https://gitlab.winehq.org/wine/wine/-/wikis/Wine-Developer's-Guide/Debugging-Wine.md
[2] https://git-scm.com/docs/gitattributes#_checking_out_and_checking_in
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.