From: Jeff King <peff@peff.net>
To: Andreas Ericsson <ae@op5.se>
Cc: git@vger.kernel.org
Subject: Re: Trouble with case-insensitive filesystems
Date: Fri, 26 Oct 2007 12:34:50 -0400 [thread overview]
Message-ID: <20071026163450.GA19673@coredump.intra.peff.net> (raw)
In-Reply-To: <4722064C.1000201@op5.se>
On Fri, Oct 26, 2007 at 05:22:52PM +0200, Andreas Ericsson wrote:
> There are no areas in git to patch. There's no sane way to handle your
> case, so the best you could opt for is to import it to a system with
> sane case-handling, alter the repo so no two filenames clash, and then
> check it out on your case-insensitive filesystem. Note that you'll
You don't need a sane system, since git's index provides one:
# make our new repo without checking anything out
git-clone -n /path/to/other/repo repo
cd repo
# grab a text representation of what would be checked out
git-ls-tree -r HEAD >files
# fix up any broken filenames
$EDITOR files
# and shove it into the index
git-update-index --index-info <files
# update your working tree
git-checkout-index -a
# and optionally save the commit
git-commit -m 'broken filenames hack'
Of course, all of the prior commits won't be usable. You would have to
repeat this hack on every commit using git-filter-branch for that.
-Peff
next prev parent reply other threads:[~2007-10-26 16:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-26 14:52 Trouble with case-insensitive filesystems Rocco Rutte
2007-10-26 15:22 ` Andreas Ericsson
2007-10-26 16:11 ` Rocco Rutte
2007-10-26 16:34 ` Jeff King [this message]
2007-10-26 15:29 ` Jean-François Veillette
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=20071026163450.GA19673@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=ae@op5.se \
--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).