github / github/git-sizer

Does git-sizer count objects managed by Git LFS?

Offen
#50 8 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
4.1k
Forks
201
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.