home | list info | list archive | date index | thread index

[OCLUG-Tech] is there a recipe to display the git object store hierarchically?

  • Subject: [OCLUG-Tech] is there a recipe to display the git object store hierarchically?
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Fri, 23 Sep 2016 04:38:33 -0400 (EDT)
  i'm aware of things like "git cat-file -p" and so on, but is there
some magic incantation to display the git object store
graphically/hierarchically?

  when i teach git, one of the first demos is to create a new repo,
add two files, stage and commit, at which point one points out that
that created 4 objects in the object store:

  * 2 blobs
  * 1 tree
  * 1 commit

but it would be useful to be able to *see* the underlying structure so
the class can be truly convinced as to what just happened.

  is there some way to do that?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================