Re: [PATCH 2/5] progress: return early when in the background

2019-03-25 Thread Luke Mewburn
On 19-03-25 12:39, SZEDER Gábor wrote: | On Mon, Mar 25, 2019 at 12:08:47PM +0100, Ævar Arnfjörð Bjarmason wrote: | > | > On Mon, Mar 25 2019, SZEDER Gábor wrote: | > | > > When a git process runs in the background, it doesn't display | > > progress, only the final "done" line [1]. T

Re: [PATCH] compat/mingw: stubs for getpgid() and tcgetpgrp()

2015-04-16 Thread Luke Mewburn
On Wed, Apr 15, 2015 at 08:29:30PM +0200, Johannes Sixt wrote: | Windows does not have process groups. It is, therefore, the simplest | to pretend that each process is in its own process group. | | [...] | | diff --git a/compat/mingw.h b/compat/mingw.h | index 7b523cf..a552026 1006

[PATCH] progress: no progress in background

2015-04-15 Thread Luke Mewburn
Disable the display of the progress if stderr is not the current foreground process. Still display the final result when done. Signed-off-by: Luke Mewburn Acked-by: Nicolas Pitre --- progress.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a

Re: [PATCH] reduce progress updates in background

2015-04-14 Thread Luke Mewburn
On Mon, Apr 13, 2015 at 11:01:04AM -0400, Nicolas Pitre wrote: | > That's what happens; the suppression only occurs if the process is | > currently background. If I start a long-running operation (such as "git | > fsck"), the progress is displayed. I then suspend & background, and the | >

[PATCH v2] reduce progress updates in background

2015-04-14 Thread Luke Mewburn
Updated patch where is_foreground_fd() is only called in display() just before the output is to be displayed. From d87997509fc631b8cdc7db63f289102d6ddfe933 Mon Sep 17 00:00:00 2001 From: Luke Mewburn Date: Mon, 13 Apr 2015 23:30:51 +1000 Subject: [PATCH] progress: no progress in background

Re: [PATCH] reduce progress updates in background

2015-04-13 Thread Luke Mewburn
On Mon, Apr 13, 2015 at 10:11:09AM -0400, Nicolas Pitre wrote: | What if you suspend the task and push it into the background? Would be | nice to inhibit progress display in that case, and resume it if the task | returns to the foreground. That's what happens; the suppression only occurs i

[PATCH] reduce progress updates in background

2015-04-13 Thread Luke Mewburn
getpgid(0) in a member of struct progress in start_progress_delay(), since this value shouldn't change during the life of the process. regards, Luke. From 843a367bac87674666dafbaf7fdb7d6b0e1660f7 Mon Sep 17 00:00:00 2001 From: Luke Mewburn Date: Mon, 13 Apr 2015 23:30:51 +1000 Subject: [PATCH