From: "Avery Pennarun" <apenwarr@gmail.com>
To: "Dmitry Potapov" <dpotapov@gmail.com>
Cc: "Nigel Magnay" <nigel.magnay@gmail.com>, git <git@vger.kernel.org>
Subject: Re: crlf with git-svn driving me nuts...
Date: Wed, 16 Apr 2008 21:44:39 -0400 [thread overview]
Message-ID: <32541b130804161844g9c7b321u70bbd36a01494185@mail.gmail.com> (raw)
In-Reply-To: <20080417004645.GK3133@dpotapov.dyndns.org>
On 4/16/08, Dmitry Potapov <dpotapov@gmail.com> wrote:
> On Thu, Apr 17, 2008 at 12:07:27AM +0100, Nigel Magnay wrote:
> > Okay - at the very least this behaviour is really, really confusing.
> > And I think there's actually a bug (it should *always* report that the
> > file is different), not magically after it's been touched.
>
> I don't think there is a simple way to correct that without penalizing
> normal use cases. Usually, people do not change autocrlf during their
> normal work. Besides, you can have your own input filters and they may
> cause the same effect. So, Git works in the assumption that input filters
> always produce the same results...
However, it doesn't check that before it marks the file as unmodified
right after checkout. That is, the problem is hidden until the file's
mtime changes.
Is there a way to quickly check that every file in the repo is "sane",
ie. the input filter is the proper inverse of the output filter and
will put each file back in the repo? This is pretty important for
anyone designing any kind of input filter, or bugs will go undetected
until some later time when they're confusing.
> If you imported correctly in Git, it should not have CRLF for text
> files. So, there is no conversion that a user does expliciltly.
Can you give a set of steps for how to import "correctly" using git-svn?
Remember that a given svn repository might have long ago been
configured to store CRLF (actually, to store files without changing
their line endings), since that is the svn default. Also remember
that the svn:eol-style flag may be set differently on various files in
svn, and may have changed in different svn revisions over time.
Thanks,
Avery
next prev parent reply other threads:[~2008-04-17 1:45 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-16 19:10 crlf with git-svn driving me nuts Nigel Magnay
2008-04-16 20:01 ` Dmitry Potapov
2008-04-16 20:20 ` Avery Pennarun
2008-04-16 20:39 ` Dmitry Potapov
2008-04-16 21:56 ` Nigel Magnay
[not found] ` <320075ff0804161447u25dfbb2bmcd36ea507224d835@mail.gmail.com>
[not found] ` <20080416223739.GJ3133@dpotapov.dyndns.org>
2008-04-16 23:07 ` Nigel Magnay
2008-04-17 0:46 ` Dmitry Potapov
2008-04-17 1:44 ` Avery Pennarun [this message]
2008-04-17 7:07 ` Nigel Magnay
2008-04-17 9:43 ` Dmitry Potapov
2008-04-17 10:09 ` Nigel Magnay
2008-04-17 18:53 ` Dmitry Potapov
2008-04-17 22:03 ` Nigel Magnay
2008-04-17 22:42 ` Dmitry Potapov
2008-04-17 5:43 ` Steffen Prohaska
2008-04-16 20:56 ` Martin Langhoff
2008-04-16 21:02 ` Avery Pennarun
2008-04-16 21:17 ` Dmitry Potapov
2008-04-16 20:03 ` Avery Pennarun
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=32541b130804161844g9c7b321u70bbd36a01494185@mail.gmail.com \
--to=apenwarr@gmail.com \
--cc=dpotapov@gmail.com \
--cc=git@vger.kernel.org \
--cc=nigel.magnay@gmail.com \
/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).