Skip to content

Instantly share code, notes, and snippets.

@joakime
Last active November 10, 2021 21:40
Show Gist options
  • Save joakime/8c3a632011ec54952640a1bf02c277b2 to your computer and use it in GitHub Desktop.
Save joakime/8c3a632011ec54952640a1bf02c277b2 to your computer and use it in GitHub Desktop.
How to see what the largest object ids are in a branch.
[joakim@hyperion tmp]$ git clone git@github.com:eclipse/jetty.project.git
Cloning into 'jetty.project'...
remote: Enumerating objects: 760026, done.
remote: Counting objects: 100% (15474/15474), done.
remote: Compressing objects: 100% (6625/6625), done.
remote: Total 760026 (delta 5693), reused 14847 (delta 5266), pack-reused 744552
Receiving objects: 100% (760026/760026), 228.80 MiB | 37.67 MiB/s, done.
Resolving deltas: 100% (307533/307533), done.
[joakim@hyperion tmp]$ git ls-tree -r -t -l --full-name HEAD | sort -n -k 4 | tail -n 10
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
[joakim@hyperion tmp]$ ^C
[joakim@hyperion tmp]$ cd jetty.project/
[joakim@hyperion jetty.project][jetty-10.0.x]$ git ls-tree -r -t -l --full-name HEAD | sort -n -k 4 | tail -n 10
100644 blob c90e163997dd94f22d293fcb53c3acc3a43e3453 340485 documentation/jetty-documentation/src/main/asciidoc/old_docs/images/debug-eclipse-2.png
100644 blob fc4eb9503916f7427cde1d9e98f47c23916273ea 405149 documentation/jetty-documentation/src/main/asciidoc/old_docs/images/intellij_set_breakpoint.png
100644 blob ed034e40407c4602ac131dc85f060495d152c4dd 443702 documentation/jetty-documentation/src/main/asciidoc/old_docs/images/intellij_debug_view.png
100644 blob eb17c2e9883adca068a0395ed04988360f3f9bdb 471247 jetty-webapp/src/test/resources/wars/dump.war
100644 blob d53984c5bdd74e9ed192b3e8bfe2cb3b3c84a921 555356 documentation/jetty-documentation/src/main/asciidoc/old_docs/images/intellij_select_debug.png
100644 blob 6ecb39dc3129de7b617f6da460c541820d33ce2f 568807 jetty-http2/http2-hpack/src/test/resources/data/story_30.json
100644 blob 374bb9eaa8ec875262a82caf1354fbd828d5152e 569905 VERSION.txt
100644 blob f28670f2968c054f5a5ea98610830405183e5c5c 610000 demos/demo-jetty-webapp/src/main/webapp/data.txt
100644 blob 64f39f6ee0f9b6ac04e7c4de67ffb3405f9e1ec4 1048836 jetty-server/src/test/resources/multipart/browser-capture-whitespace-only-jetty-client.raw
100644 blob 21305780ba1ac97bb92dab8dc38a4590f26eee7e 4443937 jetty-websocket/websocket-javax-tests/src/test/resources/data/largest.jpg
[joakim@hyperion jetty.project][jetty-10.0.x]$ git branch -a | grep http3
remotes/origin/jetty-10.0.x-quic-http3
[joakim@hyperion jetty.project][jetty-10.0.x]$ git checkout jetty-10.0.x-quic-http3
Branch 'jetty-10.0.x-quic-http3' set up to track remote branch 'jetty-10.0.x-quic-http3' from 'origin'.
Switched to a new branch 'jetty-10.0.x-quic-http3'
[joakim@hyperion jetty.project][jetty-10.0.x-quic-http3]$ git ls-tree -r -t -l --full-name HEAD | sort -n -k 4 | tail -n 10
100644 blob 6ecb39dc3129de7b617f6da460c541820d33ce2f 568807 jetty-http2/http2-hpack/src/test/resources/data/story_30.json
100644 blob 6ecb39dc3129de7b617f6da460c541820d33ce2f 568807 jetty-http3/http3-qpack/src/test/resources/data/story_30.json
100644 blob 374bb9eaa8ec875262a82caf1354fbd828d5152e 569905 VERSION.txt
100644 blob f28670f2968c054f5a5ea98610830405183e5c5c 610000 demos/demo-jetty-webapp/src/main/webapp/data.txt
100644 blob 64f39f6ee0f9b6ac04e7c4de67ffb3405f9e1ec4 1048836 jetty-server/src/test/resources/multipart/browser-capture-whitespace-only-jetty-client.raw
100644 blob 3386da88b0f53c8037a8f878030f41a9fbc29ff5 3846144 jetty-quic/quic-quiche/quic-quiche-common/src/main/resources/win32-x86-64/quiche.dll
100644 blob 21305780ba1ac97bb92dab8dc38a4590f26eee7e 4443937 jetty-websocket/websocket-javax-tests/src/test/resources/data/largest.jpg
100755 blob 7d76bcb49b887622ac669db3cfae9533bbe56414 6501180 jetty-quic/quic-quiche/quic-quiche-common/src/main/resources/darwin-aarch64/libquiche.dylib
100755 blob 887a441a1f54c4952d696f03d6c8f63704b7bf9b 7143976 jetty-quic/quic-quiche/quic-quiche-common/src/main/resources/darwin-x86-64/libquiche.dylib
100755 blob 06b768b764134bfc13338b264110a037c4628bc1 27574384 jetty-quic/quic-quiche/quic-quiche-common/src/main/resources/linux-x86-64/libquiche.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment