Re: convert crlf to eol on vendor branch overlay

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/7/2011 11:43 PM, Junio C Hamano wrote:
"Neal Kreitzinger"<neal@xxxxxxxx>  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)

?
That worked!  Thanks!
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]