From: Christian Couder Date: Mon, 30 Mar 2009 04:18:18 GMT Subject: Re: [PATCH 2/2] bisect--helper: string output variables together with "&&" Message-ID: <200903300618.19041.chriscool@tuxfamily.org> In-Reply-To: <20090329115547.91e2de5b.chriscool@tuxfamily.org> Le dimanche 29 mars 2009, Christian Couder a écrit : > -static void show_tried_revs(struct commit_list *tried) > +static void show_tried_revs(struct commit_list *tried, int stringed) > { > + char *last_format = stringed ? "%s &&" : "%s"; > + > printf("bisect_tried='"); > for (;tried; tried = tried->next) { > - char *format = tried->next ? "%s|" : "%s"; > + char *format = tried->next ? "%s|" : last_format; > printf(format, sha1_to_hex(tried->item->object.sha1)); > } > printf("'\n"); Ooops, sorry, this is wrong I will send an updaed series. Best regards, Christian.