path: root/Documentation/git-count-objects.txt
diff options
authorAntoine Pelisse <>2013-04-10 19:03:23 (GMT)
committerJunio C Hamano <>2013-04-10 19:58:33 (GMT)
commit079b546a2940a84989893254a318c8414e13a13e (patch)
tree5f8cc69cbfa12a63cf23b6dfdd75f92eefb4b9ef /Documentation/git-count-objects.txt
parentfa7285dc3dce8bd01fd8c665b032603ed55348e5 (diff)
strbuf: create strbuf_humanise_bytes() to show byte sizes
Humanization of downloaded size is done in the same function as text formatting in 'process.c'. The code cannot be reused easily elsewhere. Separate text formatting from size simplification and make the function public in strbuf so that it can easily be used by other callers. We now can use strbuf_humanise_bytes() for both downloaded size and download speed calculation. One of the drawbacks is that speed will now look like this when download is stalled: "0 bytes/s" instead of "0 KiB/s". Signed-off-by: Antoine Pelisse <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-count-objects.txt')
0 files changed, 0 insertions, 0 deletions