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

Re: git slow unless piped to cat

From
Michal Suchánek <msuchanek@suse.de>
Date
Aug 27, 2019, 11:28 UTC
Message-ID
<20190827132804.13350e60@naga>
In-Reply-To
<20190827105638.2og6vwvqtzkkqn5p@pengutronix.de>

On Tue, 27 Aug 2019 12:56:38 +0200 Uwe Kleine-König <u.kleine-koenig@pengutronix.de> wrote:

Show 23 quoted lines
> Hello,
> 
> On Tue, Aug 27, 2019 at 12:33:09PM +0200, SZEDER Gábor wrote:
> > On Tue, Aug 27, 2019 at 12:04:27PM +0200, Uwe Kleine-König wrote:  
> > > I'm a bit surprised that the default for --decorate depends on the
> > > output being a terminal.  
> > 
> > Decorations (and colors as well) are for humans, and humans read the
> > terminal.  
> 
> I agree for colors only. Changing the actually provided information
> depending on output being a terminal is IMHO at least surprising.
> 
> > > Thanks for your help, I will think about what I want to do. Just using
> > > --no-decorate will work, but isn't nice either. Will test if just
> > > throwing away all those tags from linux-next will make this already
> > > better.  
> > 
> > Note that you can disable decorations by setting the 'log.decorate'
> > configuration variable to false.  
> 
> Being able to configure --decorate-refs= and --decorate-refs-exclude= in
> the config would be nice ...

The question is if excluding some will speed things up. Depending on the way they are stored and looked up to match to the commit at hand this might not be a big win.

Thanks
MIchal
Previous: Uwe Kleine-KönigNext: Jeff King
Message 9 of 13 in “git slow unless piped to cat”
  1. Uwe Kleine-KönigAug 27, 2019
  2. SZEDER GáborAug 27, 2019
  3. Uwe Kleine-KönigAug 27, 2019
  4. Philipp ZabelAug 27, 2019
  5. SZEDER GáborAug 27, 2019
  6. Uwe Kleine-KönigAug 27, 2019
  7. SZEDER GáborAug 27, 2019
  8. Uwe Kleine-KönigAug 27, 2019
  9. Michal SuchánekAug 27, 2019
  10. Jeff KingAug 27, 2019
  11. Uwe Kleine-KönigAug 27, 2019
  12. Bryan TurnerAug 27, 2019
  13. Uwe Kleine-KönigAug 28, 2019

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.