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

[PATCH 0/4] Bulk check-in

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 28, 2011, 23:54 UTC
Message-ID
<1319846051-462-1-git-send-email-gitster@pobox.com>

This miniseries is a continuation of the "large file" topic from 1.7.6 development cycle.

The first three are moving existing code around for better reuse. The last one serves two purposes: to lift the one-pack-per-one-large-blob constraint by introducing the concept of "plugging/unplugging" (i.e. you plug the drain and throw many large blob at index_fd(), and they appear in a single pack when you unplug it), and to stop using fast-import in this codepath.

Only very lightly tested.
Junio C Hamano (4):
  write_pack_header(): a helper function
  create_tmp_packfile(): a helper function
  finish_tmp_packfile(): a helper function
  Bulk check-in
 Makefile               |    2 +
 builtin/add.c          |    5 ++
 builtin/pack-objects.c |   56 +++++------------
 bulk-checkin.c         |  159 ++++++++++++++++++++++++++++++++++++++++++++++++
 bulk-checkin.h         |   16 +++++
 pack-write.c           |   53 ++++++++++++++++
 pack.h                 |    6 ++
 sha1_file.c            |   67 +-------------------
 t/t1050-large.sh       |   26 ++++++--
 9 files changed, 282 insertions(+), 108 deletions(-)
 create mode 100644 bulk-checkin.c
 create mode 100644 bulk-checkin.h
-- 
1.7.7.1.573.ga40d2
Next: Junio C Hamano
Message 1 of 10 in “Bulk check-in”
  1. 0/4 Bulk check-inJunio C Hamano, Oct 28, 2011
  2. 1/4 write_pack_header(): a helper functionJunio C Hamano, Oct 28, 2011
  3. 2/4 create_tmp_packfile(): a helper functionJunio C Hamano, Oct 28, 2011
  4. 3/4 finish_tmp_packfile(): a helper functionJunio C Hamano, Oct 28, 2011
  5. 4/4 Bulk check-inJunio C Hamano, Oct 28, 2011
  6. 0/3 bulk-checkin continuedJunio C Hamano, Nov 18, 2011
  7. 1/3 csum-file: introduce sha1file_checkpointJunio C Hamano, Nov 18, 2011
  8. 2/3 bulk-checkin: do not write the same object twiceJunio C Hamano, Nov 18, 2011
  9. 3/3 bulk-checkin: do not write an object that already existsJunio C Hamano, Nov 18, 2011
  10. bulk-checkin: honor pack.packsizelimitJunio C Hamano, Nov 24, 2011

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.