Re: convert crlf to eol on vendor branch overlay

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: convert crlf to eol on vendor branch overlay

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:00

"Neal Kreitzinger" [off-list ref] writes:
How do I convert the eol's to LF?

I tried this:

vi .git/attributes
SRC/*/* text  (convert these to LF eol on commit)

$ git config core.eol lf (convert "text" attr files to LF eol on checkout)
Instead, how about something like:

  $ git ls-files -z | xargs -0 perl -p -i -e 's/\r$//'

and then:
$ git add . -A
$ git commit -m'convert eol'  (should convert CRLF to LF)
?

Re: convert crlf to eol on vendor branch overlay

From: Neal Kreitzinger <hidden>
Date: 2016-06-15 22:51:00

On 4/7/2011 11:43 PM, Junio C Hamano wrote:
"Neal Kreitzinger"[off-list ref]  writes:
quoted
How do I convert the eol's to LF?

I tried this:

vi .git/attributes
SRC/*/* text  (convert these to LF eol on commit)

$ git config core.eol lf (convert "text" attr files to LF eol on checkout)
Instead, how about something like:

   $ git ls-files -z | xargs -0 perl -p -i -e 's/\r$//'

and then:
quoted
$ git add . -A
$ git commit -m'convert eol'  (should convert CRLF to LF)
?
That worked!  Thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help