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

Re: dangling commits

From
Junio C Hamano <junkio@cox.net>
Date
Jan 16, 2006, 09:27 UTC
Message-ID
<7vr778wmj3.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060116085238.GA3768@fiberbit.xs4all.nl>
Marco Roeland <marco.roeland@xs4all.nl> writes:
> As far as I know although packs are used in transferring the commits to
> your local repository they are stored there as separate objects,...

That is true only when you are using git native protocols (i.e. git:// and git over ssh). Some people pull over dumb transport (http -- some others still use rsync which is even dumber and has serious limitations), and when you need objects that are contained in a pack at the upstream, the packfile is downloaded as a whole, and it is left packed on your end.

Even when you use git native protocol, the objects the initial clone gives you are kept packed, so when I rewind and rebuild "pu" to make some of these objects orphaned, they will stay in the pack the initial clone gave you. Unpack+repack is needed to get rid of them.

As you said, they should not hurt much in practice, though.
Previous: Marco RoelandNext: Marco Roeland
Message 8 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.