Hi, Dale,

I do some experiments on Linux kernel.

1. Download 3.17.7 and 3.18.1 from kernel.org
    commit the source into branch 3.17.7 and 3.18.1 which branched from an 
empty master branch.

2. git ls-tree --full-tree -r -l both branch. 

    The result shows if the two file content is the same. The blob hash is 
the same.    
    The same file won't occupy extra space.

I will check what's wrong with my android upgrade. Thanks for the help.

Dale Worley於 2014年12月29日星期一UTC+8上午4時14分18秒寫道:
> <dcg...@gmail.com <javascript:>> writes: 
> >   I am pretty sure most of the files are the same by git diff. 
> Does that mean that you have actually done a git-diff and examined the 
> total size of the files whose content has changed? 
> >   There is only small parts of the code base differ. 
> > 
> >   Just like you said, I expect only slight size increase with the new 
> > branch pushed. 
> >   However, the repository doubled the size from 4G to 8G. Just as twice 
> as 
> > the original size.       
> Have you actually enumerated where the space is being consumed? 
> One way is to execute "git ls-tree --full-tree -r -l [branch]" for each 
> branch, then use "comm" to find the lines for new/different files in the 
> second branch.  Total the 4th fields of those lines and see how much 
> space they occupy (uncompressed). 
> Dale 

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