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

Re: removal of "percent done" messages from git pull

From
CMCatalin Marinas <catalin.marinas@arm.com>
Date
Feb 19, 2007, 15:30 UTC
Message-ID
<1171899033.5129.13.camel@pc1117>
In-Reply-To
<Pine.LNX.4.63.0702191611410.22628@wbgn013.biozentrum.uni-wuerzburg.de>
On Mon, 2007-02-19 at 16:12 +0100, Johannes Schindelin wrote:
Show 14 quoted lines
> > Larry Streepy <larry@lightspeed.com> wrote:
> > > I run a nightly script to build and test our product.  I capture all
> > > the output and email it to interested parties.  One very annoying
> > > thing is the "percent done" messages that come out of git pull.  It
> > > results in log files that look like this:
> > [...]
> > > I have found no way to make these messages go away.  When running in a
> > > "batch" mode, IMHO, interactive messages like these should not be
> > > emitted. At least there should be a switch to suppress them.
> > 
> > Or (as done in StGIT for some messages), only print those interactive
> > messages when stdout is a tty, i.e. "if (isatty(1))".
> 
> You mean something like this?
[...]
> +	if (!verbose && !isatty(1))
> +		quiet = 1;

Well, you might not want this to be the equivalent of --quiet as you already have an option for it. I'm not familiar to the GIT internals but it seems a bit more complicated since those messages are sent by the server. Maybe some modification to the sideband.c but both error messages and progress percentage seem to be sent on the same band #2.

-- 
Catalin
Previous: Johannes SchindelinNext: Junio C Hamano
Message 6 of 8 in “removal of "percent done" messages from git pull”
  1. Larry StreepyFeb 16, 2007
  2. Peter BaumannFeb 16, 2007
  3. Larry StreepyFeb 16, 2007
  4. Catalin MarinasFeb 19, 2007
  5. Johannes SchindelinFeb 19, 2007
  6. Catalin MarinasFeb 19, 2007
  7. Junio C HamanoFeb 19, 2007
  8. Johannes SchindelinFeb 19, 2007

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.