File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ git rev-list --objects --all |
2+ git cat-file --batch-check=' %(objecttype) %(objectname) %(objectsize) %(rest)' |
3+ sed -n ' s/^blob //p' |
4+ awk ' $2 >= 2^20' |
5+ sort --numeric-sort --key=2 |
6+ cut -c 1-12,41- |
7+ $( command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest
8+
9+ # example output
10+ # 22c19f287836 1.0MiB images/posts/1.gif
11+ # 0e15a02b835a 1.2MiB images/posts/2.gif
12+ # f48d3086bf1d 1.5MiB images/posts/3.gif
13+ # eecf2e1d46a7 1.6MiB images/posts/4.gif
14+ # a267f286e7f2 1.7MiB images/posts/5.gif
15+ # 225cba92676b 3.4MiB images/posts/6.gif
16+
17+ # to find commits with SHA use
18+ # git log --raw --all --find-object=225cba92676b
19+
20+ # to find all files with given extension
21+ # git log --all --full-history -- *.gif
You can’t perform that action at this time.
0 commit comments