]> git.ipfire.org Git - thirdparty/git.git/commit
scalar: teach `diagnose` to gather packfile info
authorMatthew John Cheetham <mjcheetham@outlook.com>
Sat, 28 May 2022 23:11:17 +0000 (16:11 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 31 May 2022 06:07:31 +0000 (23:07 -0700)
commit93e804b2785e1f030737e31e7e18ddc997a368c7
treed1ce254df6de4dfbcb006fabf35d2af17bdb3c04
parent0ed5b13f2450fd26c0e52cef775deea477e4cdb4
scalar: teach `diagnose` to gather packfile info

It's helpful to see if there are other crud files in the pack
directory. Let's teach the `scalar diagnose` command to gather
file size information about pack files.

While at it, also enumerate the pack files in the alternate
object directories, if any are registered.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/scalar/scalar.c
contrib/scalar/t/t9099-scalar.sh