From: Linus Torvalds <torvalds@linux-foundation.org>
To: Alex Riesen <raa.lkml@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: What's cooking in git.git (Jul 2009, #01; Mon, 06)
Date: Tue, 7 Jul 2009 15:13:39 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.2.01.0907071504540.3210@localhost.localdomain> (raw)
In-Reply-To: <81b0412b0907071257q14bb544dp99846f2a35fbada2@mail.gmail.com>
On Tue, 7 Jul 2009, Alex Riesen wrote:
>
> Maybe we could at least let the user save the encoding of file names
> in the tree objects somehow?
There's no place to really sanely save it in a tree, nor is there really
even any way to figure the right encoding out. In fact, one of the
problems with non-utf encodings is that in theory people could literally
be mixing different encodings in one tree (imagine test-suites etc).
There's a reason why the only _sane_ model is to use an encoding that is
universal.
So we could in theory save an encoding in the commit, but quite frankly,
it's unlikely that we could use it sanely. Nobody is ever going to write a
sane merge that will merge across different encodings. So realistically,
you're going to have a single encoding not per tree, or per commit, but
for the whole project.
And then when you get fed up with Latin1 or Shift-JIS or whatever crazy
sh*t people are still using, you use fast-export + script + fast-import,
and change the encoding for the whole repository that way. Exactly because
doing it at a smaller granularity is a total pain in the *ss.
Linus
next prev parent reply other threads:[~2009-07-07 22:14 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-06 18:32 What's cooking in git.git (Jul 2009, #01; Mon, 06) Junio C Hamano
2009-07-06 20:29 ` Marcus Camen
2009-07-06 21:38 ` Junio C Hamano
2009-07-06 22:03 ` Marcus Camen
2009-07-06 22:34 ` Junio C Hamano
2009-07-06 23:42 ` Jakub Narebski
2009-07-07 2:18 ` Mark Lodato
2009-07-07 21:11 ` Jeff King
2009-07-07 6:30 ` Johannes Sixt
2009-07-07 19:17 ` Linus Torvalds
2009-07-07 19:57 ` Alex Riesen
2009-07-07 22:13 ` Linus Torvalds [this message]
2009-07-07 20:08 ` Johannes Schindelin
2009-07-07 20:13 ` Shawn O. Pearce
2009-07-07 22:19 ` Junio C Hamano
2009-07-07 22:28 ` Shawn O. Pearce
2009-07-08 13:42 ` notes, was " Johannes Schindelin
2009-07-08 5:39 ` Stephen Boyd
2009-07-08 6:38 ` Johannes Sixt
2009-07-10 5:05 ` Christian Couder
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=alpine.LFD.2.01.0907071504540.3210@localhost.localdomain \
--to=torvalds@linux-foundation.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=raa.lkml@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).