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

Re: [cogito] paged output for cg-diff

From
Junio C Hamano <junkio@cox.net>
Date
May 20, 2005, 12:53 UTC
Message-ID
<7v64xevz15.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200505201105.08711.michal.rokos@nextsoft.cz>
>>>>> "MR" == Michal Rokos <michal.rokos@nextsoft.cz> writes:

MR> I'm a bit curious what is going on in development so I'm using cg-diff MR> often. Usually I pipe it to the less. So for me it would be very nice MR> when cg-diff behaves as cg-log that pipes output to pager.

I think that is a sensible thing to do. But doesn't "less" already do this part without being told?

MR> +PAGER () { MR> + if [ -t 1 ]; then MR> + ${PAGER:-less} ${PAGER_FLAGS:--R} MR> + else MR> + cat MR> + fi MR> +}

Previous: Michal RokosNext: Thomas Glanzmann
Message 2 of 3 in “[cogito] paged output for cg-diff”
  1. Michal RokosMay 20, 2005
  2. Junio C HamanoMay 20, 2005
  3. Thomas GlanzmannMay 20, 2005

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.