Re: [RFC PATCH] diff: use $COLUMNS if available for default stat_width
- From
- Mikael 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