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

Re: dangling commits

From
Andreas Ericsson <ae@op5.se>
Date
Jan 15, 2006, 20:56 UTC
Message-ID
<43CAB6ED.3010703@op5.se>
In-Reply-To
<dqebk9$75f$1@sea.gmane.org>
Nick Williams wrote:
Show 23 quoted lines
> Hi, after cloning the git repo with
> 
> cg-clone http://www.kernel.org/pub/scm/git/git.git git
> 
> and then doing
> 
> git-fsck-objects --full
> 
> I get the following
> 
> dangling commit 42db15448ea3c21ae458d5ea873157449042c07c
> dangling commit 4d04a4022e7f9f3ada3a64e2010ce65e1fcc5c64
> dangling commit a773f5bda1835d739ee7209589e137ddd7199142
> dangling commit ceb90a511add3b362f1384aa6ea35370d12db315
> 
> However if I do cg-clone git://git.kernel.org/pub/scm/git/git.git
> there's no output from git-fsck --full
> 
> git version = 1.1.GIT
> cogito version = cogito-0.17pre.GIT
> 
> did I do something wrong (again)?
> 

Nopes. One clones over http, so you'll get all objects in the object database. The other clones over the far more clever git protocol which calculates which objects you need. Obviously you don't need dangling commits (and their related blobs), so there will be no such items.

That there are on kernel.org at all is because Junio does rebases of the pu branch and then pushes them out, which means that the objects from the last rebase of that branch are left dangling.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Nick WilliamsNext: Nick Williams
Message 2 of 15 in “dangling commits”
  1. Nick WilliamsJan 15, 2006
  2. Andreas EricssonJan 15, 2006
  3. Nick WilliamsJan 15, 2006
  4. Junio C HamanoJan 15, 2006
  5. Wolfgang DenkJan 15, 2006
  6. Junio C HamanoJan 15, 2006
  7. Marco RoelandJan 16, 2006
  8. Junio C HamanoJan 16, 2006
  9. Marco RoelandJan 16, 2006
  10. Andreas EricssonJan 16, 2006
  11. Marco RoelandJan 16, 2006
  12. Andreas EricssonJan 16, 2006
  13. Marco RoelandJan 16, 2006
  14. Wolfgang DenkJan 16, 2006
  15. Marco RoelandJan 16, 2006

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.