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

tb/merge-tree-write-pack [Was: Re: What's cooking in git.git (Nov 2023, #04; Thu, 9)]

From
Elijah Newren <newren@gmail.com>
Date
Nov 11, 2023, 00:00 UTC
Message-ID
<CABPp-BHWxbwyMU-8YXFUy+A3S7b5K-BsRAh95QaEQG-1ECdwJA@mail.gmail.com>
In-Reply-To
<ZUzcmsfJe6jk4fTk@nand.local>
Hi,
On Thu, Nov 9, 2023 at 5:21 AM Taylor Blau <me@ttaylorr.com> wrote:
Show 15 quoted lines
>
> On Thu, Nov 09, 2023 at 02:40:28AM +0900, Junio C Hamano wrote:
> > * tb/merge-tree-write-pack (2023-10-23) 5 commits
> >  - builtin/merge-tree.c: implement support for `--write-pack`
> >  - bulk-checkin: introduce `index_tree_bulk_checkin_incore()`
> >  - bulk-checkin: introduce `index_blob_bulk_checkin_incore()`
> >  - bulk-checkin: generify `stream_blob_to_pack()` for arbitrary types
> >  - bulk-checkin: extract abstract `bulk_checkin_source`
> >
> >  "git merge-tree" learned "--write-pack" to record its result
> >  without creating loose objects.
> >
> >  Comments?
> >  source: <cover.1698101088.git.me@ttaylorr.com>
>
[...]
> I am fairly confident that tb/merge-tree-write-pack is ready to go. I'll
> spin off a separate thread based on that branch and cc/git-replay as a
> non-RFC series that extends this approach to 'git replay', so we'll be
> ready to go there once Christian's series progresses.

Sorry for being so late to review. I posted some comments on patch 5 in relation to repeated file merges within a single (non-recursive) merge, and in relation to recursive merges. Both are cases that'd be really easy to miss if you're not familiar with the merge code, but I think will cause the code to die with fatal errors. I provided my guesses at some potential fixes for both issues.

Previous: Jeff King
Message 8 of 8 in “What's cooking in git.git (Nov 2023, #04; Thu, 9)”
  1. Junio C HamanoNov 8, 2023
  2. Jeff KingNov 9, 2023
  3. Taylor BlauNov 9, 2023
  4. Taylor BlauNov 9, 2023
  5. Junio C HamanoNov 9, 2023
  6. tb/merge-tree-write-pack, was Re: What's cooking in git.git (Nov 2023, #04; Thu, 9)Johannes Schindelin, Nov 15, 2023
  7. Jeff KingNov 16, 2023
  8. tb/merge-tree-write-pack [Was: Re: What's cooking in git.git (Nov 2023, #04; Thu, 9)]Elijah Newren, Nov 11, 2023

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.