git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Enumerating all objects in the Git object store
@ 2010-03-26 15:31 Paul Richards
  2010-03-26 15:53 ` Johannes Sixt
  2010-03-27 13:33 ` Michael J Gruber
  0 siblings, 2 replies; 8+ messages in thread
From: Paul Richards @ 2010-03-26 15:31 UTC (permalink / raw)
  To: git

Hi,
I'd like to visualize the objects in a Git repository using Graphviz
and "dot".  I'd like to see commits as circles, trees as triangles,
blobs as rectangles, and have arrows linking these objects showing how
they reference each other in the Git DAG.  For small repositories this
may be a useful way to visualize how Git objects work.

I could not find a pre-existing script to do this so I am considering
writing one.  Is there a way to enumerate all the objects in the Git
object store, and for each one figure out its type (commit, tree, or
blob) and obtain a list of the objects it references?  If not, is
there a way to do this for a single object at a time?  (I can then
simply recurse through the whole structure.)


-- 
Paul Richards

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-03-27 13:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-26 15:31 Enumerating all objects in the Git object store Paul Richards
2010-03-26 15:53 ` Johannes Sixt
2010-03-26 16:13   ` Jakub Narebski
2010-03-26 17:25   ` Nicolas Pitre
2010-03-26 20:11     ` Johannes Sixt
2010-03-26 20:24       ` Nicolas Pitre
2010-03-26 21:11   ` Paul Richards
2010-03-27 13:33 ` Michael J Gruber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).