[PATCH v2 0/3] count-objects size and strbuf human-readable
- From
Marcus Griep <marcus@griep.us>
- Date
- Aug 14, 2008, 22:18 UTC
- Message-ID
- <1218752308-3173-1-git-send-email-marcus@griep.us>
This patch series does three things. First, it allows count-objects to report pack size along side loose object size in verbose output.
Second, it adds a function to strbuf to assist in formatting values using metric orders of magnitude in both SI and binary units, thus providing a more human-readable display format.
Third, it allows count-objects to utilize that faculty through an additional command line argument which shows sizes in verbose output as human readable values.
Marcus Griep (3): count-objects: Add total pack size to verbose output strbuf: Add method to convert byte-size to human readable form count-objects: add human-readable size option
.gitignore | 1 + Documentation/git-count-objects.txt | 13 ++++-- Makefile | 2 +- builtin-count-objects.c | 31 +++++++++++- strbuf.c | 88 +++++++++++++++++++++++++++++++++++ strbuf.h | 9 ++++ t/t0031-human-readable.sh | 9 ++++ test-human-read.c | 64 +++++++++++++++++++++++++ 8 files changed, 209 insertions(+), 8 deletions(-) create mode 100755 t/t0031-human-readable.sh create mode 100644 test-human-read.c