git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add 'git fast-export', the sister of 'git fast-import'

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 27, 2007, 23:40 UTC
Message-ID
<fii9ta$b2j$1@ger.gmane.org>
In-Reply-To
<Pine.LNX.4.64.0711271127440.27959@racer.site>
Johannes Schindelin wrote:
> On Mon, 26 Nov 2007, Shawn O. Pearce wrote:
Show 10 quoted lines
>> I think this should be prefixed by fast-import patch to teach it 
>> something like "encoding N" as a subcommand of commit, so that you can 
>> feed data in a non UTF-8 encoding and get it to include the proper 
>> encoding header in the commit object it creates.  That way a pipeline 
>> like the above really does create a duplicate repository, with the same 
>> commit SHA-1s, even if the commits weren't in UTF-8.
> 
> IMHO it's not worth that hassle.  People who want to use fast-import 
> usually want something fast which works, and not bother with specifying 
> encodings.

Well, when I am converting some repository which uses legacy encoding (not utf-8), I'd like to use this git feature of specifying encoding; actually, to be generic, it could be any header which would be added to all created commit objects.

Yes, I could reencode commit messages...

P.S. One nice use of proposed (at one time) 'note' header would be to save revision identifier from the version control system you import (CVS revision number, Subversion sequential revision number, etc.).

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 8 of 10 in “Add 'git fast-export', the sister of 'git fast-import'”
  1. Add 'git fast-export', the sister of 'git fast-import'Johannes Schindelin, Nov 25, 2007
  2. Junio C HamanoNov 26, 2007
  3. Johannes SchindelinNov 26, 2007
  4. Junio C HamanoNov 26, 2007
  5. Johannes SchindelinNov 27, 2007
  6. Shawn O. PearceNov 27, 2007
  7. Johannes SchindelinNov 27, 2007
  8. Jakub NarebskiNov 27, 2007
  9. Johannes SchindelinNov 28, 2007
  10. Jakub NarebskiNov 28, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.