git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Some feedback on 'git clone create'
@ 2024-12-04  5:28 Sainan
  2024-12-04 23:19 ` Justin Tobler
  0 siblings, 1 reply; 6+ messages in thread
From: Sainan @ 2024-12-04  5:28 UTC (permalink / raw)
  To: git@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-12-05 18:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-04  5:28 Some feedback on 'git clone create' Sainan
2024-12-04 23:19 ` Justin Tobler
2024-12-05  7:03   ` Sainan
2024-12-05  8:38   ` Patrick Steinhardt
2024-12-05 15:27     ` Justin Tobler
2024-12-05 18:45       ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).