{"thread":{"id":"6849","subject":"removal of \"percent done\" messages from git pull","startedAt":"2007-02-16T16:48:43Z","lastAt":"2007-02-19T23:53:45Z","messageCount":8,"participants":["Larry Streepy","Peter Baumann","Catalin Marinas","Johannes Schindelin","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"34811","messageId":"45D5E06B.6020706@lightspeed.com","threadId":"6849","inReplyTo":null,"subject":"removal of \"percent done\" messages from git pull","fromName":"Larry Streepy","fromEmail":"larry@lightspeed.com","sentAt":"2007-02-16T16:48:43Z","receivedAt":"2007-02-16T16:48:43Z","isPatch":false,"sender":{"key":"larry@lightspeed.com","avatar":null},"body":"I run a nightly script to build and test our product.  I capture all the \noutput and email it to interested parties.  One very annoying thing is the \n\"percent done\" messages that come out of git pull.  It results in log files \nthat look like this:\n\n+ git pull\nremote: Generating pack...\nremote: Done counting 204 objects.\nResult has 107 objects.\nDeltifying 107 objects.\n    0% (1/107) done   1% (2/107) done   2% (3/107) dremote: one   3% \n(4/107) done   4% (5/107) done   5% (6/107) done   6% (7/107) done   7% \n(8/107) done   8% (9/107) done   9% (10/remote: 107) done  10% (11/107) \ndone  11% (12/107) done  12% (13/107) done  13% (14/107) done  14% (15/107) \ndone  15% (17/107) donremote: e  16% (18/107) done  17% (19/107) done  18% \n(20/107) done  19% (21/107) done  20% (22/107) done  21% (23/107) done  22% \nremote: (24/107) done  23% (25/107) done  24% (26/107) done  25% (27/107) \ndone  26% (28/107) done  27% (29/107) done  28% (30/107)remote:  done  29% \n(32/107) done  30% (33/107) done  31% (34/107) done  32% (35/107) done  33% \n(36/107) done  34% (37/107) done  remote: 35% (38/107) done  36% (39/107) \ndone  37% (40/107) done  38% (41/107) done  39% (42/107) doneremote:   40% \n(43/107) doneremote:   41% (44/107) doneremote:   42% (45/107) doneremote: \n   43% (47/107) doneremote:   44% (48/107) doneremote:   !\n  45% (49/107) doneremote:   46% (50/107) doneremote:   47% (51/107) \ndoneremote:   48% (52/107) doneremote:   49% (53/107) doneremote:   50% \n(54/107) doneremote:   51% (55/107) doneremote:   52% (56/107) doneremote: \n   53% (57/107) doneremote:   54% (58/107) doneremote:   55% (59/107) \ndoneremote:   56% (60/107) doneremote:   57% (61/107) doneremote:   58% \n(63/107) doneremote:   59% (64/107) doneremote:   60% (65/107) doneremote: \n   61% (66/107) doneremote:   62% (67/107) done  63% (68/107) doneremote: \n  64% (69/107) doneremote:   65% (70/107) doneremote:   66% (71/107) \ndoneremote:   67% (72/107) done  68% (73/107) done  69% (74/107) done  70% \n(75/107) done  71% (76/107) doneremote:   72% (78/107) done  73% (79/107) \ndone  74% (80/107) done  75% (81/107) done  76% (82/107) done  77% (83/107) \ndone  78% (8remote: 4/107) done  79% (85/107) done  80% (86/107) done  81% \n(87/107) done  82% (88/107) done  83% (89/107) done  84% (90/107) dremote: on!\n  e  85% (91/107) done  86% (93/107) done  87% (94/107) done!\n    88% (9\n5/107) done  89% (96/107) done  90% (97/107) done  91remote: % (98/107) \ndone  92% (99/107) done  93% (100/107) done  94% (101/107) done  95% \n(102/107) done  96% (103/107) done  97% (1remote: 04/107) done  98% \n(105/107) done  99% (106/107) done 100% (107/107) done\nUnpacking 107 objects\nremote: Total 107, written 107 (delta 70), reused 78 (delta 41)\n\nI have found no way to make these messages go away.  When running in a \n\"batch\" mode, IMHO, interactive messages like these should not be emitted. \n  At least there should be a switch to suppress them.\n\nHave I missed the magic switch that will accomplish this?\n\nLarry.\n\nP.S. I'm using 1.4.4.1\n"},{"id":"34815","messageId":"slrnetbrgm.ahb.siprbaum@xp.machine.xx","threadId":"6849","inReplyTo":"45D5E06B.6020706@lightspeed.com","subject":"Re: removal of \"percent done\" messages from git pull","fromName":"Peter Baumann","fromEmail":"siprbaum@stud.informatik.uni-erlangen.de","sentAt":"2007-02-16T17:47:02Z","receivedAt":"2007-02-16T17:47:02Z","isPatch":false,"sender":{"key":"waste.manager@gmx.de","avatar":null},"body":"Larry Streepy <larry@lightspeed.com> schrieb:\n> I run a nightly script to build and test our product.  I capture all the \n> output and email it to interested parties.  One very annoying thing is the \n> \"percent done\" messages that come out of git pull.  It results in log files \n> that look like this:\n>\n> + git pull\n> remote: Generating pack...\n> remote: Done counting 204 objects.\n> Result has 107 objects.\n> Deltifying 107 objects.\n>     0% (1/107) done   1% (2/107) done   2% (3/107) dremote: one   3% \n> (4/107) done   4% (5/107) done   5% (6/107) done   6% (7/107) done   7% \n> (8/107) done   8% (9/107) done   9% (10/remote: 107) done  10% (11/107) \n> done  11% (12/107) done  12% (13/107) done  13% (14/107) done  14% (15/107) \n> done  15% (17/107) donremote: e  16% (18/107) done  17% (19/107) done  18% \n> (20/107) done  19% (21/107) done  20% (22/107) done  21% (23/107) done  22% \n> remote: (24/107) done  23% (25/107) done  24% (26/107) done  25% (27/107) \n> done  26% (28/107) done  27% (29/107) done  28% (30/107)remote:  done  29% \n> (32/107) done  30% (33/107) done  31% (34/107) done  32% (35/107) done  33% \n> (36/107) done  34% (37/107) done  remote: 35% (38/107) done  36% (39/107) \n> done  37% (40/107) done  38% (41/107) done  39% (42/107) doneremote:   40% \n> (43/107) doneremote:   41% (44/107) doneremote:   42% (45/107) doneremote: \n>    43% (47/107) doneremote:   44% (48/107) doneremote:   !\n>   45% (49/107) doneremote:   46% (50/107) doneremote:   47% (51/107) \n> doneremote:   48% (52/107) doneremote:   49% (53/107) doneremote:   50% \n> (54/107) doneremote:   51% (55/107) doneremote:   52% (56/107) doneremote: \n>    53% (57/107) doneremote:   54% (58/107) doneremote:   55% (59/107) \n> doneremote:   56% (60/107) doneremote:   57% (61/107) doneremote:   58% \n> (63/107) doneremote:   59% (64/107) doneremote:   60% (65/107) doneremote: \n>    61% (66/107) doneremote:   62% (67/107) done  63% (68/107) doneremote: \n>   64% (69/107) doneremote:   65% (70/107) doneremote:   66% (71/107) \n> doneremote:   67% (72/107) done  68% (73/107) done  69% (74/107) done  70% \n> (75/107) done  71% (76/107) doneremote:   72% (78/107) done  73% (79/107) \n> done  74% (80/107) done  75% (81/107) done  76% (82/107) done  77% (83/107) \n> done  78% (8remote: 4/107) done  79% (85/107) done  80% (86/107) done  81% \n> (87/107) done  82% (88/107) done  83% (89/107) done  84% (90/107) dremote: on!\n>   e  85% (91/107) done  86% (93/107) done  87% (94/107) done!\n>     88% (9\n> 5/107) done  89% (96/107) done  90% (97/107) done  91remote: % (98/107) \n> done  92% (99/107) done  93% (100/107) done  94% (101/107) done  95% \n> (102/107) done  96% (103/107) done  97% (1remote: 04/107) done  98% \n> (105/107) done  99% (106/107) done 100% (107/107) done\n> Unpacking 107 objects\n> remote: Total 107, written 107 (delta 70), reused 78 (delta 41)\n>\n> I have found no way to make these messages go away.  When running in a \n> \"batch\" mode, IMHO, interactive messages like these should not be emitted. \n>   At least there should be a switch to suppress them.\n>\n> Have I missed the magic switch that will accomplish this?\n>\n> Larry.\n>\n> P.S. I'm using 1.4.4.1\n\nHave you tried with -q to make it more silent? (I didn't try this, but\nnormaly the git porcelain commands just pass the options they don't\nunderstand to the underlying core commands; and git-fetch-pack has the\noption -q for quiet)\n\n-Peter\n"},{"id":"34825","messageId":"45D60C55.4060005@lightspeed.com","threadId":"6849","inReplyTo":"slrnetbrgm.ahb.siprbaum@xp.machine.xx","subject":"Re: removal of \"percent done\" messages from git pull","fromName":"Larry Streepy","fromEmail":"larry@lightspeed.com","sentAt":"2007-02-16T19:56:05Z","receivedAt":"2007-02-16T19:56:05Z","isPatch":false,"sender":{"key":"larry@lightspeed.com","avatar":null},"body":"Hi Peter,\n\nYes, I did try that, but the underlying \"git-fetch\" command complains about \nimproper usage. So it seems that git-fetch-pack is not being called (or it \nis called from git-fetch and git-fetch is failing to understand -q).\n\nThanks,\nLarry.\n\n\nPeter Baumann wrote:\n> Larry Streepy <larry@lightspeed.com> schrieb:\n>> I run a nightly script to build and test our product.  I capture all the \n>> output and email it to interested parties.  One very annoying thing is the \n>> \"percent done\" messages that come out of git pull.  It results in log files \n>> that look like this:\n>>\n> \n> Have you tried with -q to make it more silent? (I didn't try this, but\n> normaly the git porcelain commands just pass the options they don't\n> understand to the underlying core commands; and git-fetch-pack has the\n> option -q for quiet)\n> \n> -Peter\n"},{"id":"35004","messageId":"tnxr6sm5m2u.fsf@arm.com","threadId":"6849","inReplyTo":"45D5E06B.6020706@lightspeed.com","subject":"Re: removal of \"percent done\" messages from git pull","fromName":"Catalin Marinas","fromEmail":"catalin.marinas@arm.com","sentAt":"2007-02-19T13:11:21Z","receivedAt":"2007-02-19T13:11:21Z","isPatch":false,"sender":{"key":"catalin.marinas@arm.com","avatar":null},"body":"Larry Streepy <larry@lightspeed.com> wrote:\n> I run a nightly script to build and test our product.  I capture all\n> the output and email it to interested parties.  One very annoying\n> thing is the \"percent done\" messages that come out of git pull.  It\n> results in log files that look like this:\n[...]\n> I have found no way to make these messages go away.  When running in a\n> \"batch\" mode, IMHO, interactive messages like these should not be\n> emitted. At least there should be a switch to suppress them.\n\nOr (as done in StGIT for some messages), only print those interactive\nmessages when stdout is a tty, i.e. \"if (isatty(1))\".\n\n-- \nCatalin\n"},{"id":"35011","messageId":"Pine.LNX.4.63.0702191611410.22628@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"6849","inReplyTo":"tnxr6sm5m2u.fsf@arm.com","subject":"Re: removal of \"percent done\" messages from git pull","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-02-19T15:12:18Z","receivedAt":"2007-02-19T15:12:18Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Mon, 19 Feb 2007, Catalin Marinas wrote:\n\n> Larry Streepy <larry@lightspeed.com> wrote:\n> > I run a nightly script to build and test our product.  I capture all\n> > the output and email it to interested parties.  One very annoying\n> > thing is the \"percent done\" messages that come out of git pull.  It\n> > results in log files that look like this:\n> [...]\n> > I have found no way to make these messages go away.  When running in a\n> > \"batch\" mode, IMHO, interactive messages like these should not be\n> > emitted. At least there should be a switch to suppress them.\n> \n> Or (as done in StGIT for some messages), only print those interactive\n> messages when stdout is a tty, i.e. \"if (isatty(1))\".\n\nYou mean something like this?\n\n--\n[PATCH] fetch: make things quiet when not outputting to a tty\n\nSigned-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n\n---\n\n fetch-pack.c |    2 ++\n 1 files changed, 2 insertions(+), 0 deletions(-)\n\ndiff --git a/fetch-pack.c b/fetch-pack.c\nindex c787106..9ec5479 100644\n--- a/fetch-pack.c\n+++ b/fetch-pack.c\n@@ -725,6 +725,8 @@ int main(int argc, char **argv)\n \t\tnr_heads = argc - i - 1;\n \t\tbreak;\n \t}\n+\tif (!verbose && !isatty(1))\n+\t\tquiet = 1;\n \tif (!dest)\n \t\tusage(fetch_pack_usage);\n \tpid = git_connect(fd, dest, uploadpack);\n"},{"id":"35013","messageId":"1171899033.5129.13.camel@pc1117","threadId":"6849","inReplyTo":"Pine.LNX.4.63.0702191611410.22628@wbgn013.biozentrum.uni-wuerzburg.de","subject":"Re: removal of \"percent done\" messages from git pull","fromName":"Catalin Marinas","fromEmail":"catalin.marinas@arm.com","sentAt":"2007-02-19T15:30:33Z","receivedAt":"2007-02-19T15:30:33Z","isPatch":false,"sender":{"key":"catalin.marinas@arm.com","avatar":null},"body":"On Mon, 2007-02-19 at 16:12 +0100, Johannes Schindelin wrote:\n> > Larry Streepy <larry@lightspeed.com> wrote:\n> > > I run a nightly script to build and test our product.  I capture all\n> > > the output and email it to interested parties.  One very annoying\n> > > thing is the \"percent done\" messages that come out of git pull.  It\n> > > results in log files that look like this:\n> > [...]\n> > > I have found no way to make these messages go away.  When running in a\n> > > \"batch\" mode, IMHO, interactive messages like these should not be\n> > > emitted. At least there should be a switch to suppress them.\n> > \n> > Or (as done in StGIT for some messages), only print those interactive\n> > messages when stdout is a tty, i.e. \"if (isatty(1))\".\n> \n> You mean something like this?\n[...]\n> +\tif (!verbose && !isatty(1))\n> +\t\tquiet = 1;\n\nWell, you might not want this to be the equivalent of --quiet as you\nalready have an option for it. I'm not familiar to the GIT internals but\nit seems a bit more complicated since those messages are sent by the\nserver. Maybe some modification to the sideband.c but both error\nmessages and progress percentage seem to be sent on the same band #2.\n\n-- \nCatalin\n"},{"id":"35037","messageId":"7vsld169cf.fsf@assigned-by-dhcp.cox.net","threadId":"6849","inReplyTo":"Pine.LNX.4.63.0702191611410.22628@wbgn013.biozentrum.uni-wuerzburg.de","subject":"Re: removal of \"percent done\" messages from git pull","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-02-19T23:01:04Z","receivedAt":"2007-02-19T23:01:04Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:\n\n>> Or (as done in StGIT for some messages), only print those interactive\n>> messages when stdout is a tty, i.e. \"if (isatty(1))\".\n>\n> You mean something like this?\n>\n> --\n> [PATCH] fetch: make things quiet when not outputting to a tty\n>\n> Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n\nPlease grep for 'git.fetch-pack' again.  Its output is list of\nobject names and the refnames where they live in the remote and\nconsumed by the later stages of git-fetch script.\n"},{"id":"35045","messageId":"Pine.LNX.4.63.0702200053080.22628@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"6849","inReplyTo":"7vsld169cf.fsf@assigned-by-dhcp.cox.net","subject":"Re: removal of \"percent done\" messages from git pull","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-02-19T23:53:45Z","receivedAt":"2007-02-19T23:53:45Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Mon, 19 Feb 2007, Junio C Hamano wrote:\n\n> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:\n> \n> >> Or (as done in StGIT for some messages), only print those interactive\n> >> messages when stdout is a tty, i.e. \"if (isatty(1))\".\n> >\n> > You mean something like this?\n> >\n> > --\n> > [PATCH] fetch: make things quiet when not outputting to a tty\n> >\n> > Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n> \n> Please grep for 'git.fetch-pack' again.  Its output is list of\n> object names and the refnames where they live in the remote and\n> consumed by the later stages of git-fetch script.\n\nOuch. Sorry. I'll try to come up with a better patch tomorrow, and I will \ntest that, too.\n\nCiao,\nDscho\n"}]}