Edmundo Carmona Antoranz <eantor...@gmail.com> writes:

> +       /*
> +        * Final processing of show_progress
> +        * Any of these 3 conditions will make progress output be skipped:
> +        * - selected --quiet
> +        * - selected --no-progress
> +        * - didn't select --progress and not working on a terminal
> +        */
> +       opts.show_progress = !opts.quiet && opts.show_progress &&
> +                            (opts.show_progress >= 0 || isatty(2));
> +

I do find what Peff showed us a lot easier to follow.

        if (opts.show_progress < 0) {
                if (opts.quiet)
                        opts.show_progress = 0;
                else
                        opts.show_progress = isatty(2);
        }

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to