From: Neal Kreitzinger <nkreitzinger@gmail•com>
To: Junio C Hamano <gitster@pobox•com>
Cc: Neal Kreitzinger <neal@rsss•com>, git@vger•kernel.org
Subject: Re: convert crlf to eol on vendor branch overlay
Date: Fri, 08 Apr 2011 13:18:41 -0500 [thread overview]
Message-ID: <4D9F5181.7050806@gmail.com> (raw)
In-Reply-To: <7vy63l4ak6.fsf@alter.siamese.dyndns.org>
On 4/7/2011 11:43 PM, Junio C Hamano wrote:
> "Neal Kreitzinger"<neal@rsss•com> 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!
prev parent reply other threads:[~2011-04-08 18:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-08 2:40 convert crlf to eol on vendor branch overlay Neal Kreitzinger
2011-04-08 4:43 ` Junio C Hamano
2011-04-08 18:18 ` Neal Kreitzinger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D9F5181.7050806@gmail.com \
--to=nkreitzinger@gmail$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
--cc=gitster@pobox$(echo .)com \
--cc=neal@rsss$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox