Re: [RFC/PATCH] git-fetch: mega-terse fetch output
- From
Andreas Ericsson <ae@op5.se>
- Date
- Oct 19, 2007, 10:51 UTC
- Message-ID
- <47188C1A.2090600@op5.se>
- In-Reply-To
- <20071019073938.GN14735@spearce.org>
Shawn O. Pearce wrote:
Show 8 quoted lines
>
> +static void determine_window_size(void)
> +{
> + struct winsize ws;
> + if (!ioctl(2, TIOCGWINSZ, &ws))
> + ws_cols = ws.ws_col;
> +}
> +I'd suggest re-using term_columns() from help.c instead. It's been in there since the git wrapper was rewritten in C, so it's had a bit of testing and seems to work fairly well.
-- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231