Skip to content

git add - adds files to git repository objects tree - though it shouldn't #3396

Answered by PhilipOakley
SetTrend asked this question in Q&A
Discussion options

You must be logged in to vote

As far as I understand, it hasn't changed.

Obviously(?) the 2-char sub-directory name can vary as it is the first two characters of the [SHA1] object hash, so as more objects are added the more sub-dirs you may have.

However Git can also store the objects in the pack file(s) so you may those instead. If a file is larger than a certain size then Git will automatically send the object straight into the pack [many reasons].

It's most likely that you just hadn't immediately noticed the particular details of the internal format, which can be a [backward compatible] moving target..

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@SetTrend
Comment options

@dscho
Comment options

@dscho
Comment options

@SetTrend
Comment options

Comment options

You must be logged in to vote
2 replies
@dscho
Comment options

@PhilipOakley
Comment options

Answer selected by SetTrend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3395 on August 27, 2021 11:28.