git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Correct output of git-count-objects.

From
MMMikael Magnusson <mikachu@gmail.com>
Date
Sep 8, 2008, 17:56 UTC
Message-ID
<alpine.LNX.1.00.0809081952590.30512@localhost>
The non-verbose output was not changed in
fdb2a2a600969598fd80f01b009fbbb020d596ab ("compat: introduce on_disk_bytes()")
which caused git-count-objects to claim 512 times too much space used for 
loose objects.
---
 builtin-count-objects.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-count-objects.c b/builtin-count-objects.c
index 6e80fe7..ab35b65 100644
--- a/builtin-count-objects.c
+++ b/builtin-count-objects.c
@@ -126,6 +126,6 @@ int cmd_count_objects(int argc, const char **argv, const char *prefix)
 	}
 	else
 		printf("%lu objects, %lu kilobytes\n",
-		       loose, loose_size / 2);
+		       loose, loose_size / 1024);
 	return 0;
 }
-- 
1.6.0.GIT


--
Mikael Magnusson
Next: Junio C Hamano
Message 1 of 2 in “Correct output of git-count-objects.”
  1. Correct output of git-count-objects.Mikael Magnusson, Sep 8, 2008
  2. Junio C HamanoSep 8, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.