Re: [PATCH v2] count-objects: output KiB instead of kilobytes

2013-04-05 Thread Mihai Capotă
On Thu, Apr 4, 2013 at 6:27 PM, Junio C Hamano gits...@pobox.com wrote: Mihai Capotă mi...@mihaic.ro writes: The git manual contains an explicit warning about the output of a porcelain command changing: The interface to Porcelain commands on the other hand are subject to change in order to

Re: [PATCH v2] count-objects: output KiB instead of kilobytes

2013-04-05 Thread Antoine Pelisse
Should we use that opportunity to implement an option like -h (for humanize) similar to what ls(1), df(1), du(1) does ? Of course -h is already used for help, so we could use -H or any other sensible choice. It can become tough to read the size when it gets big enough. On Thu, Apr 4, 2013 at 6:27

Re: [PATCH v2] count-objects: output KiB instead of kilobytes

2013-04-04 Thread Mihai Capotă
On Wed, Apr 3, 2013 at 4:38 PM, Junio C Hamano gits...@pobox.com wrote: Mihai Capotă mi...@mihaic.ro writes: diff --git a/git-cvsimport.perl b/git-cvsimport.perl index 73d367c..de44e33 100755 --- a/git-cvsimport.perl +++ b/git-cvsimport.perl @@ -1126,12 +1126,12 @@ unless ($opt_P) { } #

Re: [PATCH v2] count-objects: output KiB instead of kilobytes

2013-04-04 Thread Junio C Hamano
Mihai Capotă mi...@mihaic.ro writes: The git manual contains an explicit warning about the output of a porcelain command changing: The interface to Porcelain commands on the other hand are subject to change in order to improve the end user experience. Yeah, I know that, as I wrote it ;-)

[PATCH v2] count-objects: output KiB instead of kilobytes

2013-04-03 Thread Mihai Capotă
The code uses division by 1024. The master branch count-objects manual also uses KiB. Also updated the code that reads count-objects output (t5301, t5700, t7408, and git-cvsimport) and the Git User's Manual. Signed-off-by: Mihai Capotă mi...@mihaic.ro --- Documentation/user-manual.txt |4