From: Raimund Bauer <ray007@gmx.net>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git <git@vger.kernel.org>
Subject: Re: help with cvsimport
Date: Sun, 24 Jun 2007 11:37:35 +0200 [thread overview]
Message-ID: <467E3B5F.5070508@gmx.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0706231213020.4059@racer.site>
Hi,
* Johannes Schindelin wrote, On 23.06.2007 13:27:
> Hi,
>
> On Sat, 23 Jun 2007, Raimund Bauer wrote:
>
>
>> I unfortunately have to work with several cvs-repositories and was
>> wondering if there was a way to have the files processed on import:
>> - strip trailing whitespace
>> - convert to newline-only line endings
>>
>
> If you want to use cvsimport incrementally, I'd rather not process the
> "origin" branch like this, but rather use git-filter-branch (with a simple
> index filter) to do that.
>
> Even if you do not want to use it incrementally, it seems easier and
> cleaner (if somewhat slower) to me.
>
> So, something like
>
> git filter-branch --index-filter 'git ls-files |
> while read name; do
> perl -pi -e "s/[ \009\015]*$//" "$name"
> done
> git add -u' cleaned-up-origin
>
> should do.
>
Thanks, will try that out.
Tough I'm not very happy about having to create an extra branch for
every branch I want to work with.
And a git-solution would also respect git-attributes ...
> Hth,
> Dscho
>
--
best regards
Ray
prev parent reply other threads:[~2007-06-24 9:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-23 9:11 help with cvsimport Raimund Bauer
2007-06-23 11:27 ` Johannes Schindelin
2007-06-24 9:37 ` Raimund Bauer [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=467E3B5F.5070508@gmx.net \
--to=ray007@gmx.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).