Re: [PATCH 2/2] bisect--helper: string output variables together with "&&"
- From
Christian Couder <chriscool@tuxfamily.org>
- Date
- Mar 30, 2009, 04:18 UTC
- Message-ID
- <200903300618.19041.chriscool@tuxfamily.org>
- In-Reply-To
- <20090329115547.91e2de5b.chriscool@tuxfamily.org>
Le dimanche 29 mars 2009, Christian Couder a écrit :
Show 12 quoted lines
> -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.