github / github/git-sizer

Does git-sizer count objects managed by Git LFS?

Đang mở
#50 8 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
4.1k
Fork
201
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I have a largish bare repo with Git LFS installed (SVN to Git migration):

```console
proj.git (BARE:master) $ git-sizer
Processing blobs: 1107392
Processing trees: 178226
Processing commits: 29412
Matching commits to trees: 29412
Processing annotated tags: 0
Processing references: 24
| Name | Value | Level of concern |
| ---------------------------- | --------- | ------------------------------ |
| Overall repository size | | |
| * Blobs | | |
| * Total size | 12.8 GiB | * |
| | | |
| Biggest objects | | |
| * Trees | | |
| * Maximum entries [1] | 1.96 k | * |
| * Blobs | | |
| * Maximum size [2] | 113 MiB | *********** |
| | | |
| Biggest checkouts | | |
| * Number of directories [3] | 13.3 k | ****** |
| * Maximum path depth [4] | 18 | * |
| * Maximum path length [5] | 232 B | ** |
| * Number of files [6] | 910 k | ****************** |
| * Total size of files [7] | 3.37 GiB | *** |
```

I've written a little `git lfs ls-file` helper [git_lfs_calculate_size_by_type.py](https://gist.github.com/mloskot/a648d11468f56e3b7a4f3ffb5fe7a9c0) which reports for `proj.git` repo this:

```console
Git LFS objects summary:
.lib: count: 1111 size: 8764.66 MB
.dll: count: 749 size: 1427.98 MB
.pdb: count: 612 size: 2814.09 MB
.exe: count: 786 size: 2005.72 MB
.zip: count: 24 size: 1153.65 MB
Total: count: 3282 size: 16166.11 MB
```

Does the latter `16166.11 MB` relate to the former `12.8 GiB` in any way?
Or, is the _grand_ total of the repo, Git and Git LFS objects, a sum of the two figure?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.