Thread (13 messages) flat view 13 messages, 3 authors, 2016-06-15
STALE3715d

[PATCH v2 0/3] count-objects size and strbuf human-readable

From: Marcus Griep <hidden>
Date: 2016-06-15 22:45:09

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help