git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: "Ferry Huberts (Pelagic)" <ferry.huberts@pelagic.nl>
Cc: Johannes Schindelin <johannes.schindelin@gmx.de>, git@vger.kernel.org
Subject: Re: autocrlf=input and safecrlf (was Re: CVS import [SOLVED])
Date: Wed, 25 Feb 2009 01:56:24 -0500	[thread overview]
Message-ID: <20090225065624.GA1678@sigill.intra.peff.net> (raw)
In-Reply-To: <14283.77.61.241.211.1235467512.squirrel@hupie.xs4all.nl>

On Tue, Feb 24, 2009 at 10:25:12AM +0100, Ferry Huberts (Pelagic) wrote:

> > So yes, in some sense it is safecrlf that is broken. I'm just concerned
> > about tweaking the user's options behind their back. The import can
> > happen differently than they expected no matter which of safecrlf or
> > autocrlf you tweak. So I think you are better off to complain and die.
> 
> The plan was:
> - when creating a new git repo for cvs import: setup safecrlf=false
> - when importing into an existing repo: check whether the safecrlf
>   setting is set to false and crash and burn when not :-)
>   (complain before going up in flames)

Why is it OK to silently change the settings in the first case, but not
the second? Don't both have the potential to screw up the user's import?

Also, are settings going to be unset after the first import? If so, then
further incremental imports will fail as described in your second case.
But if not, then safecrlf is turned off for that repo, even for
non-cvsimport commands, overriding anything in the user's ~/.gitconfig.
For somebody doing a one-shot import, they are paying that price without
any benefit.

-Peff

  reply	other threads:[~2009-02-25  6:57 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-16  9:17 CVS import Ferry Huberts (Pelagic)
2009-02-16 13:20 ` CVS import [SOLVED] Ferry Huberts (Pelagic)
2009-02-16 13:45   ` Johannes Schindelin
2009-02-16 13:53     ` Johannes Schindelin
2009-02-16 17:33       ` Ferry Huberts (Pelagic)
2009-02-16 18:11         ` Johannes Schindelin
2009-02-16 20:32   ` Ferry Huberts (Pelagic)
2009-02-16 20:59     ` Johannes Schindelin
2009-02-17 11:19       ` Ferry Huberts (Pelagic)
2009-02-17 14:18         ` Johannes Schindelin
2009-02-17 15:16           ` Ferry Huberts (Pelagic)
2009-02-20 15:28       ` Jeff King
2009-02-20 16:25         ` Ferry Huberts (Pelagic)
2009-02-20 17:29           ` autocrlf=input and safecrlf (was Re: CVS import [SOLVED]) Jeff King
2009-02-20 23:24             ` Ferry Huberts (Pelagic)
2009-02-23  0:08               ` Jeff King
2009-02-23  6:50                 ` Ferry Huberts (Pelagic)
2009-02-23  6:56                   ` Jeff King
2009-02-23  7:09                     ` Ferry Huberts (Pelagic)
2009-02-23  7:10                       ` Jeff King
2009-02-23  7:29                         ` Ferry Huberts (Pelagic)
2009-02-24  6:11                           ` Jeff King
2009-02-24  9:25                             ` Ferry Huberts (Pelagic)
2009-02-25  6:56                               ` Jeff King [this message]
2009-02-25  8:03                                 ` Ferry Huberts (Pelagic)
2009-02-25  9:03                                   ` Jeff King

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=20090225065624.GA1678@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=ferry.huberts@pelagic.nl \
    --cc=git@vger.kernel.org \
    --cc=johannes.schindelin@gmx.de \
    /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).