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

[PATCH] Commify numbers in cg-pull

From
FSFrank Sorenson <frank@tuxrocks.com>
Date
Jul 6, 2005, 07:04 UTC
Message-ID
<42CB8279.10603@tuxrocks.com>
In-Reply-To
<42CB81A2.7080405@tuxrocks.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Here is a patch to commify the number and size of objects pulled in cg-pull. Depends on the previous "Add commify function" patch.

Signed-off-by: Frank Sorenson <frank@tuxrocks.com>
Commify number and size of objects pulled in pull_progress
- ---
commit 03fb604eb8c24851096cca14bed19f4eacc79686
tree 191e8aa3a034e302aa660a9a5b5c0c64e2e88ac9
parent de4fd646c8307777137b9a4c1b5735f9573167f6
author Frank Sorenson <frank@tuxrocks.com> Wed, 06 Jul 2005 00:47:56 -0600
committer Frank Sorenson <frank@tuxrocks.com> Wed, 06 Jul 2005 00:47:56 -0600
 cg-pull |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cg-pull b/cg-pull
- --- a/cg-pull
+++ b/cg-pull
@@ -82,7 +82,7 @@ pull_progress() {
 		size=$(($size + $(stat -c '%s' "$object" 2>/dev/null)))
 		objects=$(($objects + 1));
 
- -		echo -ne "progress: $objects objects, $size bytes$percentage\r"
+		echo -ne "progress: $(commify $objects) objects, $(commify $size) bytes$percentage\r"
 	done;
 	[ "$last_objects" != "$objects" ] && echo
 }


Frank
- -- 
Frank Sorenson - KD7TZK
Systems Manager, Computer Science Department
Brigham Young University
frank@tuxrocks.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCy4J4aI0dwg4A47wRAihxAKCOAioNWvYBDPkOvk/hYUgfUuMdewCgm1ea
4IGx09Ew6tytbOAyPrUxHZU=
=YM7f
-----END PGP SIGNATURE-----
Previous: Frank SorensonNext: Petr Baudis
Message 2 of 4 in “Add commify function to cg-Xlib”
  1. Add commify function to cg-XlibFrank Sorenson, Jul 6, 2005
  2. Commify numbers in cg-pullFrank Sorenson, Jul 6, 2005
  3. Petr BaudisJul 6, 2005
  4. Frank SorensonJul 6, 2005

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.