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

Isn't "dangling" a misnomer?

From
MCMike Coleman <tutufan@gmail.com>
Date
Feb 26, 2007, 16:35 UTC
Message-ID
<3c6c07c20702260835v4865ace1u18a20f6b1d0030b5@mail.gmail.com>

I've been reading and rereading the git documentation and tripping slightly over the word "dangling", as in "dangling object". In traditional use, one might talk of a dangling pointer A, where A points to B and B is destroyed/invalidated/etc. As a literal example, A might be a machine address like 0x8808FEFE, which points to an area of memory that once had a particular meaning, but now does not, leaving the pointer "dangling".

This way the git docs use this term seems to be the other way around---the object is still there and valid, but there are no pointers to it. In order for dangling to be going on, it seems like you'd have to have a SHA1 hash for an object that is no longer in the repository. (If there's been previous discussion of this, I couldn't find it.)

What about an alternative term like "orphaned" or "unreferenced"? The former is a bit more suggestive, but unfortunately might be confusing since the terms like ancestors, parents, etc., are already being used to talk about commit trees, which really is an orthogonal topic. The latter term seems like it would work, though it does sound a bit sterile.

Mike
Next: Johannes Schindelin
Message 1 of 7 in “Isn't "dangling" a misnomer?”
  1. Mike ColemanFeb 26, 2007
  2. Johannes SchindelinFeb 26, 2007
  3. Junio C HamanoFeb 26, 2007
  4. Linus TorvaldsFeb 26, 2007
  5. Add dangling object and unreachable object in glossary.txtYasushi SHOJI, Mar 4, 2007
  6. Josef SipekMar 4, 2007
  7. Junio C HamanoMar 4, 2007

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.