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

Re: Progress reporting (was: VCS comparison table)

From
Nicolas Pitre <nico@cam.org>
Date
Oct 30, 2006, 15:21 UTC
Message-ID
<Pine.LNX.4.64.0610301018310.11384@xanadu.home>
In-Reply-To
<ei4jia$vj0$1@sea.gmane.org>
On Mon, 30 Oct 2006, Jakub Narebski wrote:
Show 6 quoted lines
> I was bitten lately by git lack of progress reporting for git-push.
> While it nicely reports local progress (generating data) it unfortunately
> lacks wget like, "curl -o" like or scp like pack upload progress
> reporting. And while usually push is fast, initial push of whole
> project to empty repository can be quite slow on low-bandwidth link
> (or busy network).
What about this patch?
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index 41e1e74..7f87ae8 100644
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
@@ -1524,6 +1524,10 @@ int cmd_pack_objects(int argc, const cha
 			progress = 1;
 			continue;
 		}
+		if (!strcmp("--all-progress", arg)) {
+			progress = 2;
+			continue;
+		}
 		if (!strcmp("--incremental", arg)) {
 			incremental = 1;
 			continue;
@@ -1641,7 +1645,7 @@ int cmd_pack_objects(int argc, const cha
 	else {
 		if (nr_result)
 			prepare_pack(window, depth);
-		if (progress && pack_to_stdout) {
+		if (progress == pack_to_stdout) {
 			/* the other end usually displays progress itself */
 			struct itimerval v = {{0,},};
 			setitimer(ITIMER_REAL, &v, NULL);
diff --git a/send-pack.c b/send-pack.c
index 0e90548..9280481 100644
--- a/send-pack.c
+++ b/send-pack.c
@@ -30,6 +30,7 @@ static void exec_pack_objects(void)
 {
 	static const char *args[] = {
 		"pack-objects",
+		"--all-progress",
 		"--stdout",
 		NULL
Previous: Jakub Narebski
Message 18 of 18 in “Re: VCS comparison table”
  1. Horst H. von BrandOct 27, 2006
  2. Petr BaudisOct 27, 2006
  3. Andreas EricssonOct 27, 2006
  4. Jakub NarebskiOct 27, 2006
  5. Andreas EricssonOct 27, 2006
  6. J. Bruce FieldsOct 27, 2006
  7. Ilpo NyyssönenOct 28, 2006
  8. Jakub NarebskiOct 28, 2006
  9. Jakub NarebskiOct 28, 2006
  10. Robin RosenbergOct 28, 2006
  11. Jakub NarebskiOct 28, 2006
  12. Ilpo NyyssönenOct 29, 2006
  13. Jakub NarebskiOct 29, 2006
  14. Matthew D. FullerOct 29, 2006
  15. Jakub NarebskiOct 29, 2006
  16. Theodore TsoOct 30, 2006
  17. Progress reporting (was: VCS comparison table)Jakub Narebski, Oct 30, 2006
  18. Nicolas PitreOct 30, 2006

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.