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

[OCLUG-Tech] a git (plumbing?) command to show all objects added by a commit?

  • Subject: [OCLUG-Tech] a git (plumbing?) command to show all objects added by a commit?
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Tue, 24 Jan 2012 11:20:04 -0500 (EST)
  in order to demonstrate what happens in the .git directory for a
single commit, i'd like the simplest way to list all of the new
objects that were added to the .git directory given changing a single
file and committing that change.

  for example, let's say i've checked out the kernel source tree and
make a trivial change to a file five subdirectories down, then commit
that single file change.  if i understand it correctly, the following
objects will have to be created and added to the .git object set:

* a new blob for the new file
* 5 new trees, one for each subdirectory all the way down to the
  changed file
* a new commit object

  does that sound about right?  and is there a single command that
would show all of that new content?  thanks.

rday

-- 

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

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