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

Re: BUG. Git config pager when --edit

From
Jeff King <peff@peff.net>
Date
Nov 7, 2011, 16:42 UTC
Message-ID
<20111107164250.GC27055@sigill.intra.peff.net>
In-Reply-To
<CAH6sp9Ox+6p4RkjCZ0j3tXG9F4u7SPuwbSrOWmLSXic9DxSKiQ@mail.gmail.com>
On Mon, Nov 07, 2011 at 02:43:41PM +0100, Frans Klaver wrote:
Show 14 quoted lines
> > As far as my config is large enough to be paged I set pager.config=less
> > setting. But since that moment when I run
> > $ git config --edit
> > I get
> > Vim: Warning: Output is not to a terminal
> > And some messed config output
> >
> > The same happens if to run
> > $ vim .git/config | less
> 
> So git is trying to tell vim to pipe its output to less. vim can't do
> that because it needs a terminal, as it's the only way vim is usable.
> 
> Should pager.config then only be used with --list?

Yes, but it can't, because it is not the config command, but the git wrapper that respects "pager.config". We have similar issues with setting "pager.tag" (you want it for listing, but not for tag creation) and others.

I should probably polish and submit the patch here:
  http://thread.gmane.org/gmane.comp.version-control.git/182238/focus=182475
-Peff
Previous: Frans KlaverNext: Junio C Hamano
Message 3 of 9 in “BUG. Git config pager when --edit”
  1. Alexey ShumkinNov 7, 2011
  2. Frans KlaverNov 7, 2011
  3. Jeff KingNov 7, 2011
  4. Junio C HamanoNov 7, 2011
  5. Jeff KingNov 7, 2011
  6. Frans KlaverNov 7, 2011
  7. how to merge sub directory or file?Emily, Nov 7, 2011
  8. Konstantin KhomoutovNov 7, 2011
  9. Emily RenNov 8, 2011

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.