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

Re: Doing blobless clone by default; switching between blobless, treeless and full clones by a command

From
Ben Knoble <ben.knoble@gmail.com>
Date
Sep 7, 2025, 19:42 UTC
Message-ID
<297E6C80-C998-4D6A-B06D-7B2D1B229269@gmail.com>
In-Reply-To
<79ed51fbd94ec2793ab0388b33963b366e48c590.camel@aegee.org>
Show 7 quoted lines
> Le 4 sept. 2025 à 05:37, Дилян Палаузов <dilyan.palauzov@aegee.org> a écrit :
> 
> Hello,
> 
> Rationale:
> 
> The reason people execute  git clone  is hardly to issue immediately afterwards  git log  or  git annotate.
Maybe for you, and maybe in many contexts, but I also frequently clone things to run various history spelunking searches on them. 
>  The reason for git clone is to (try changing something and then) build the software. (Provided that git manages source code.)  Doing by default a reduced data download with  git clone  will sped up the initialization, it will save bytes in transit and reduce server load.  In fact I think that by default (without extra configuration)  git clone  should do a reduced download (blobless) and
> git should download the other things, when asked to do so.  
Absolutely not (in my opinion, :p). Not having the entire repository available except when connected to a network defeats the tremendous advantage of distributed version control. Namely, privileged forks are given status by social agreement, not technical requirement. I want the whole repository available independently. 
> This default download preference should be ideally managed by an option in global gitconfig .  When looking at https://git-scm.com/docs/git-config for “filter” I do not recognize anything relevant.
This seems more moderated and achievable. If you would prefer to clone less by default (I would not), go for it. I mostly don’t work with repos where this matters, though, or where git-maintenance doesn’t do most of the job I need after a 1-time setup cost.
I do chastise folks for mis-managing large binary files in history that create large blobs and clone times, though :)
Previous: Konstantin Ryabitsev
Message 9 of 9 in “Doing blobless clone by default; switching between blobless, treeless and full clones by a command”
  1. Дилян ПалаузовSep 4, 2025
  2. Kristoffer HaugsbakkSep 4, 2025
  3. Derrick StoleeSep 4, 2025
  4. Junio C HamanoSep 4, 2025
  5. Patrick SteinhardtSep 5, 2025
  6. Derrick StoleeSep 5, 2025
  7. Patrick SteinhardtSep 5, 2025
  8. Konstantin RyabitsevSep 5, 2025
  9. Ben KnobleSep 7, 2025

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.