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

Re: Recoding of {git,cg}-log output

From
Krzysiek Pawlik <krzysiek.pawlik@people.pl>
Date
Feb 27, 2006, 00:50 UTC
Message-ID
<44024CC6.8010401@people.pl>
In-Reply-To
<Pine.LNX.4.63.0602270133330.5275@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin wrote:
> Of course, you could always set up a script doing the recoding and
> the paging, like
No.
> The advantage of this approach compared to adjusting git is that
> other programs use PAGER, too.

Passing code (web pages, etc) throught iconv is not a good idea - {git,cg}-diff should show the file content as it is, not altered by iconv.

Changing PAGER is a bit... ugly and messy way of doing it. Assume that I work on some files and want to look at some unversioned files outside the tree (like docs, man pages, whatever) and the $PAGER passes the legitimate ISO8859-2 files through iconv, what gives us garbage. And we end up changing pager very often - Bad Idea (TM).

-- 
Krzysiek Pawlik (Nelchael)
RLU #322999 GPG Key ID: 0xBC555551
Previous: Johannes SchindelinNext: Petr Baudis
Message 3 of 4 in “Recoding of {git,cg}-log output”
  1. Krzysiek PawlikFeb 27, 2006
  2. Johannes SchindelinFeb 27, 2006
  3. Krzysiek PawlikFeb 27, 2006
  4. Petr BaudisFeb 27, 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.