# [RFC] patch series to sketch a less verbose and frightening output

4 messages from 2007-09-29 to 2007-09-29. Participants: Pierre Habouzit, Nicolas Pitre.
Thread: https://gitlist.dev/t/10073

## Pierre Habouzit, 2007-09-29 10:45

Subject: [RFC] patch series to sketch a less verbose and frightening output
Message-ID: <1191062758-30631-1-git-send-email-madcoder@debian.org>
URL: https://gitlist.dev/e/1191062758-30631-1-git-send-email-madcoder%40debian.org

```
  Follow 4 patches that rework progress.c a bit so that one stage only
takes one line of output with a progress bar.

  Some of the patch fix (IMHO) pointless lines to print on screen (even
for debugging purposes).

  With those patches, running git gc looks like:

    $ git gc
    Counting objects    : 10095
    Deltifying objects  : [===================================================] 100%
    Writing objects     : [==========================>                        ] 50%

    [...]

    Counting objects    : 10095
    Deltifying objects  : [===================================================] 100%
    Writing objects     : [===================================================] 100%
    Pruning objects     : [===================================================] 100%

I don't believe those patches are 100% okay yet, because it doesn't
plays that nice during a clone (it's not horribly broken, merely
surprising). But it sketches what it could look like.

```

## Pierre Habouzit, 2007-09-29 10:49

Subject: Re: [RFC] patch series to sketch a less verbose and frightening output
Message-ID: <20070929104945.GB4216@artemis.corp>
URL: https://gitlist.dev/e/20070929104945.GB4216%40artemis.corp
In-Reply-To: <1191062758-30631-1-git-send-email-madcoder@debian.org>

```
On Sat, Sep 29, 2007 at 10:45:54AM +0000, Pierre Habouzit wrote:
>   Follow 4 patches that rework progress.c a bit so that one stage only
> takes one line of output with a progress bar.
> 
>   Some of the patch fix (IMHO) pointless lines to print on screen (even
> for debugging purposes).
> 
>   With those patches, running git gc looks like:
> 
>     $ git gc
>     Counting objects    : 10095
>     Deltifying objects  : [===================================================] 100%
>     Writing objects     : [==========================>                        ] 50%
> 
>     [...]
> 
>     Counting objects    : 10095
>     Deltifying objects  : [===================================================] 100%
>     Writing objects     : [===================================================] 100%
>     Pruning objects     : [===================================================] 100%
> 
> I don't believe those patches are 100% okay yet, because it doesn't
> plays that nice during a clone (it's not horribly broken, merely
> surprising). But it sketches what it could look like.

  Okay, sorry this was supposed to answer to
<20070929090121.GA4216@artemis.corp>

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

```

## Nicolas Pitre, 2007-09-29 14:33

Subject: Re: [PATCH 1/4] Rework progress module so that it uses less screen lines, with progress bars.
Message-ID: <alpine.LFD.0.9999.0709291030010.17881@xanadu.home>
URL: https://gitlist.dev/e/alpine.LFD.0.9999.0709291030010.17881%40xanadu.home
In-Reply-To: <1191062758-30631-2-git-send-email-madcoder@debian.org>

```
On Sat, 29 Sep 2007, Pierre Habouzit wrote:

> Signed-off-by: Pierre Habouzit <madcoder@debian.org>

NAK.

I don't mind the progress bar, but please don't supress the printing of 
the number of objects.  This is the only indication we have to 
guesstimate the time needed for given operation.


Nicolas

```

## Pierre Habouzit, 2007-09-29 16:07

Subject: Re: [PATCH 1/4] Rework progress module so that it uses less screen lines, with progress bars.
Message-ID: <20070929160733.GE32142@artemis.corp>
URL: https://gitlist.dev/e/20070929160733.GE32142%40artemis.corp
In-Reply-To: <alpine.LFD.0.9999.0709291030010.17881@xanadu.home>

```
On Sat, Sep 29, 2007 at 02:33:44PM +0000, Nicolas Pitre wrote:
> On Sat, 29 Sep 2007, Pierre Habouzit wrote:
> 
> > Signed-off-by: Pierre Habouzit <madcoder@debian.org>
> 
> NAK.
> 
> I don't mind the progress bar, but please don't supress the printing of 
> the number of objects.  This is the only indication we have to 
> guesstimate the time needed for given operation.

  As said, I don't intend this series to be integrated as is, it's just
a basis for some discussion :)

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

```
