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

Re: [PATCH] contrib/fast-import: add perl version of simple example

From
Sam Vilain <sam@vilain.net>
Date
Sep 18, 2007, 11:57 UTC
Message-ID
<46EFBD40.1070102@vilain.net>
In-Reply-To
<Pine.LNX.4.64.0709181217200.28586@racer.site>
Johannes Schindelin wrote:
Show 17 quoted lines
>> I think he means a dump that you can meaningfully edit with sed or a 
>> text editor. And even nicer, one that could be fed back into 
>> git-fast-import. So you could do something like:
>>
>> git-fast-export A..B >dump
>> vi dump
>> git-fast-import <dump
>>
>> to rewrite history in a very flexible way.
>>     
>
> Exactly what I meant.  Some people seem to have problems with 
> filter-branch, but somehow no proper bug report, let alone fix, evolved 
> from that.
>
> I guess these people are more comfortable with what you just described.
>   

Guilty. my own filter-branch supports things like custom re-ordering of commits prior to rewriting (eg, if you need to refer to one commit to another in a commit message, you better make sure it happens in the right order).

I personally want to be able to dump patches, including merges, to
git-format-patch format, in such a way that all other information (eg,
committer, date, etc) is preserved. And probably using something akin to
Message-Id: headers for a "patch UUID" which is what you need when
you're working with piles of patches like that.
Sam.
Previous: Andreas EricssonNext: Johannes Schindelin
Message 8 of 11 in “contrib/fast-import: add perl version of simple example”
  1. contrib/fast-import: add perl version of simple exampleJeff King, Sep 18, 2007
  2. Jeff KingSep 18, 2007
  3. Johannes SchindelinSep 18, 2007
  4. Andreas EricssonSep 18, 2007
  5. Jeff KingSep 18, 2007
  6. Johannes SchindelinSep 18, 2007
  7. Andreas EricssonSep 18, 2007
  8. Sam VilainSep 18, 2007
  9. Johannes SchindelinSep 18, 2007
  10. Sam VilainSep 18, 2007
  11. Johannes SchindelinSep 18, 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.