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

Re: Enumerating all objects in the Git object store

From
Nicolas Pitre <nico@fluxnic.net>
Date
Mar 26, 2010, 20:24 UTC
Message-ID
<alpine.LFD.2.00.1003261621560.694@xanadu.home>
In-Reply-To
<201003262111.48298.j.sixt@viscovery.net>
On Fri, 26 Mar 2010, Johannes Sixt wrote:
Show 11 quoted lines
> On Freitag, 26. März 2010, Nicolas Pitre wrote:
> > On Fri, 26 Mar 2010, Johannes Sixt wrote:
> > > Use 'git rev-list --objects --all' to find all objects connected to all
> > > refs (use something else than --all if you want to). Do *not* look at the
> > > path that the tree and blob objects have attached - it is not authorative
> > > information.
> >
> > Really??
> 
> Yes, really. Consider the same content at two differen paths. Now what? 
> rev-list will only ever list the object once.
Sure. It is still a valid path though.
Nicolas
Previous: Johannes SixtNext: Paul Richards
Message 6 of 8 in “Enumerating all objects in the Git object store”
  1. Paul RichardsMar 26, 2010
  2. Johannes SixtMar 26, 2010
  3. Jakub NarebskiMar 26, 2010
  4. Nicolas PitreMar 26, 2010
  5. Johannes SixtMar 26, 2010
  6. Nicolas PitreMar 26, 2010
  7. Paul RichardsMar 26, 2010
  8. Michael J GruberMar 27, 2010

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.