Pierre, Gergely, Dale

Thanks very much, somehow I missed your responses until this morning. I 
have passed on your suggestions and I think satisfied the boss. for now.

On Saturday, June 14, 2014 4:30:17 AM UTC-7, Pierre-François CLEMENT wrote:
>
> Le mercredi 11 juin 2014 18:50:07 UTC+2, John Fisher a écrit :
>
>> yes
>>  
>>
>>> git-ls-tree, when given the SHA of a commit, lists the SHAs of the 
>>> file objects pointed to by the file tree that is pointed to by the 
>>> commit. 
>>>
>>
>> *but that output does not agree with git log!*
>>
>
> You're confusing two different notions. Git objects can be of two types: 
> *blob* and *tree*. Each of them have a unique SHA1 to identify them. You 
> can think of blob objects as *"files"* and tree objects as *"folders"* to 
> get an overview of how they're organised.
> Basically, blob objects contain changes, and tree objects contain objects 
> (blobs or trees) -- just like files contain content (text, binary etc) and 
> folders contain files or folders. The git-log command will show you the 
> top tree objects, the commits, whereas git-ls-tree will show you what 
> objects the given tree object contains (hence the difference of SHA1s).
>
> I suggest to read this page from Git-Scm's book on git objects 
> <http://git-scm.com/book/en/Git-Internals-Git-Objects>if you want further 
> informations on the subject.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to