From: Edmundo Carmona Antoranz Date: Sat, 31 Oct 2015 01:08:12 GMT Subject: Re: [PATCH] checkout: add --progress option Message-ID: In-Reply-To: One line got wrapped around, hope that's not a problem to understand the whole concept. > +/* > + * Any of these conditions will make progress output be skipped: > + * - selected --quiet > + * - selected --no-progress > + * - (didn't select --progress nor --no-progress) and not working on a terminal > + */ > +static int verbose_update(const struct checkout_opts *o) > +{ > + return !o->quiet && o->show_progress && (o->show_progress >= 0 > || isatty(2)); > +} > +