From: Felipe Contreras Date: Tue, 21 May 2013 21:25:51 GMT Subject: Re: Reading commit objects Message-ID: In-Reply-To: On Tue, May 21, 2013 at 4:21 PM, Chico Sokol wrote: > Hello, > > I'm building a library to manipulate git repositories (interacting > directly with the filesystem). > > Currently, we're trying to parse commit objects. After decompressing > the contents of a commit object file we got the following output: > > commit 191 > author Francisco Sokol 1369140112 -0300 > committer Francisco Sokol 1369140112 -0300 > > first commit > > We hoped to get the same output of a "git cat-file -p ", but > that didn't happened. From a commit object, how can I find tree object > hash of this commit? git rev-parse : -- Felipe Contreras