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

Re: [RFC PATCH] diff: use $COLUMNS if available for default stat_width

From
MMMikael Magnusson <mikachu@gmail.com>
Date
Aug 26, 2011, 11:20 UTC
Message-ID
<CAHYJk3Rw0i5uNW1vyd--OS4G6Pp2kNOA3aKUucWNrDgfQkYRkA@mail.gmail.com>
In-Reply-To
<1314337647-29270-1-git-send-email-kris@shannon.id.au>
On 26 August 2011 07:47, Kris Shannon <kris@shannon.id.au> wrote:
Show 7 quoted lines
> If the COLUMNS environment variable is set use it's value
> as the default stat_width.
>
> Also set the stat_name_width default to 2/3 of the full width.
>
> This does change the default from 50 to 53 when using the
> original 80 column stat_width fallback.
You probably only want to do this when stdout is a terminal.
-- 
Mikael Magnusson
Previous: Kris Shannon
Message 2 of 2 in “diff: use $COLUMNS if available for default stat_width”
  1. diff: use $COLUMNS if available for default stat_widthKris Shannon, Aug 26, 2011
  2. Mikael MagnussonAug 26, 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.