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

[OCLUG-Tech] any git command to recursively display a commit in the object store?

  • Subject: [OCLUG-Tech] any git command to recursively display a commit in the object store?
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Sun, 16 Apr 2017 04:56:56 -0400 (EDT)
  currently updating my git courseware and not sure if i asked this
before (probably did), but if i create a new git repo with a couple
files as a class demo, is there a single git command that will display
the fact that that new repo has 4 objects:

  * 2 new blobs
  * new tree
  * new commit

and show the relationship between them?

  i know i can use variations of "git cat-file", but AIUI, i would
need to do that for each object. is there some command (or cool alias)
that would show in a more graphical form the recursive structure of a
given commit so students could immediately see the commit/tree/blob
relationships?

rday

-- 

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

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