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

Re: git-replay/git-history lose notes

From
Elijah Newren <newren@gmail.com>
Date
Aug 7, 2026, 15:16 UTC
Message-ID
<CABPp-BFwbiasLBS3LDvaz736o2u0FkQJ73Tb8SQnc5rcR5Vn0A@mail.gmail.com>
In-Reply-To
<anWpt6rzws0yYdFH@vader>
On Fri, Aug 7, 2026 at 2:49 AM erik88 <erik88@gmail.com> wrote:
Show 12 quoted lines
>
> On 06/08/26 23:53, Elijah Newren wrote:
> > git filter-repo (and implicitly fast-export/fast-import) too, though
> > that one's a slightly bigger can of worms.  (Trying to treat notes as
> > the underlying commits they are represented as is a really poor way to
> > export and import them; any filtering on the underlying commits will
> > cause the notes that attach to them to just be lost since they will
> > instead attach to the original commit.)
>
> There are some workarounds for filter-repo, IIRC they work _okay_.
>
> https://github.com/newren/git-filter-repo/issues/22#issuecomment-1834041470

Yes, I'm the one that added the "workaround-available" label on that ticket. :-) Just thought the lack of built-in support (which would require fast-export & fast-import changes) and questions about ringing bells meant it might be an interesting tidbit to add.

Previous: erik88
Message 9 of 9 in “git-replay/git-history lose notes”
  1. D. Ben KnobleAug 4, 2026
  2. Patrick SteinhardtAug 5, 2026
  3. D. Ben KnobleAug 5, 2026
  4. Phillip WoodAug 5, 2026
  5. D. Ben KnobleAug 5, 2026
  6. Junio C HamanoAug 5, 2026
  7. Elijah NewrenAug 7, 2026
  8. erik88Aug 7, 2026
  9. Elijah NewrenAug 7, 2026

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.