git objects

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

git objects

Thiago Farina-2
Hi,

When ever I make a commit (assume I'm changing a single file) and do a
'git push origin master', git says 'Counting objects: 6, done.'

Does git makes 6 objects everytime? What are those objects?

--
Thiago Farina
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Reply | Threaded
Open this post in threaded view
|

Re: git objects

Shawn Pearce
On Thu, Dec 24, 2015 at 2:17 PM, Thiago Farina <[hidden email]> wrote:
>
> When ever I make a commit (assume I'm changing a single file) and do a
> 'git push origin master', git says 'Counting objects: 6, done.'
>
> Does git makes 6 objects everytime? What are those objects?

1 commit object;
1 blob object for the new file revision;
1 tree object for the top level directory;
3 tree objects for intermediate paths
= 6

So your single file is some path like "src/main/lib/foo.c".
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html