Hi, On Mon, 19 Feb 2007, Catalin Marinas wrote: > Larry Streepy <larry@xxxxxxxxxxxxxx> 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? -- [PATCH] fetch: make things quiet when not outputting to a tty Signed-off-by: Johannes Schindelin <Johannes.Schindelin@xxxxxx> --- fetch-pack.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fetch-pack.c b/fetch-pack.c index c787106..9ec5479 100644 --- a/fetch-pack.c +++ b/fetch-pack.c @@ -725,6 +725,8 @@ int main(int argc, char **argv) nr_heads = argc - i - 1; break; } + if (!verbose && !isatty(1)) + quiet = 1; if (!dest) usage(fetch_pack_usage); pid = git_connect(fd, dest, uploadpack); - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html