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

Re: [PATCH] pager: config variable pager.color

From
JRJuergen Ruehle <j.ruehle@bmiag.de>
Date
Jul 31, 2006, 08:55 UTC
Message-ID
<17613.50574.56000.861072@lapjr.intranet.kiel.bmiag.de>
In-Reply-To
<7vd5bmbo46.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano writes:
 > Matthias Lederhofer <matled@gmx.net> writes:
 > 
 > > Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
 > >> Why? The three users of cmd_log_walk() need to call setup_pager() 
 > >> explicitely, when cmd_log_walk() can do it for them?
 > >
 > > The explanation is below the commit message:
 > > "setup_pager has to be called before git_diff_ui_config because the
 > > latter uses pager_use_color initialized by setup_pager."
 > 
 > If that is the reason, perhaps we could restructure the setting
 > and use of of diff_use_color_default like the attached, which
 > would be cleaner.

AFAICS Matthias' patch has the added benefit of moving setup_pager to before large files (i.e. packs) are mapped. This helps non-COW-fork (i.e. cygwin) tremendously. Actually with Linus' setup refactoring this could probably be easily moved to the wrapper, but I'm too stupid so I just deleted setup_pager from my version:-)

  jr
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 8 in “pager: config variable pager.color”
  1. pager: config variable pager.colorMatthias Lederhofer, Jul 29, 2006
  2. Johannes SchindelinJul 29, 2006
  3. Matthias LederhoferJul 30, 2006
  4. Johannes SchindelinJul 30, 2006
  5. Junio C HamanoJul 31, 2006
  6. Juergen RuehleJul 31, 2006
  7. Junio C HamanoJul 31, 2006
  8. Matthias LederhoferJul 31, 2006

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.