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

Re: [PATCH 2/2] bisect: string commands emited by "filter_skipped" together with "&&"

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 27, 2009, 07:01 UTC
Message-ID
<7v4oygnz29.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20090227073146.6699964f.chriscool@tuxfamily.org>
Christian Couder <chriscool@tuxfamily.org> writes:
Show 9 quoted lines
> diff --git a/git-bisect.sh b/git-bisect.sh
> index a9324b2..08e31d6 100755
> --- a/git-bisect.sh
> +++ b/git-bisect.sh
> @@ -296,14 +296,14 @@ filter_skipped() {
>  	do
> ...
>  	done
> +	echo ':'

Is there a particular reason you moved this echo ':' out of the downstream of the pipe as I wrote in my response?

It logically belongs to the downstream in this pattern:
        producer of the list of items | {
                preparatory steps
                while read one item
                do
                        process one item
                        echo "something &&"
                done
                echo ":" ;# to conclude the && chain
        }
But you changed it to:
        preparatory step that does not concern producer
        producer of the list of items |
                while read one item
                do
                        process one item
                        echo "something &&"
                done
        echo ":"
which looks to me a lot less logical code structure.
Previous: Christian Couder
Message 2 of 2 in “bisect: string commands emited by "filter_skipped" together with "&&"”
  1. 2/2 bisect: string commands emited by "filter_skipped" together with "&&"Christian Couder, Feb 27, 2009
  2. Junio C HamanoFeb 27, 2009

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.