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

Some feedback on 'git clone create'

From
SSainan <sainan@calamity.inc>
Date
Dec 4, 2024, 05:28 UTC
Message-ID
<AfLIcOv4X1AxLOaODNS89HA-bMeI7bj0xUGsLD-6xmVAS_a_2xOzy2uX-wXxpNA7kCpKYudELCEKv73roW_-HTd83Fcz3FZ_yJQOswQHW48=@calamity.inc>
Hi, I hope this email finds you well.
I think Git bundles/packfiles are an exceptional compression format, but I find there are some rough edges with the tool to create them:
1. There is no way to specify that you want a shallow bundle, instead you are only able to a) pack the entire tree at a given head or b) pack new/updated objects in a specified range. Anecdotally, this could store data in ~67% of the size of an equivalent .zip file.
2. It seems that when specifiying a commit hash, it raises an error:
$ git bundle create repo.bundle $(git rev-list HEAD | head -n 1)
> fatal: Refusing to create empty bundle.
This confuses me slightly because I thought a commit hash should also be a valid head _pointer_. 'git rev-list' also seems to agree with me on this.
-- Sainan
Next: Justin Tobler
Message 1 of 6 in “Some feedback on 'git clone create'”
  1. SainanDec 4, 2024
  2. Justin ToblerDec 4, 2024
  3. SainanDec 5, 2024
  4. Patrick SteinhardtDec 5, 2024
  5. Justin ToblerDec 5, 2024
  6. Junio C HamanoDec 5, 2024

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.