Thread (12 messages) 12 messages, 7 authors, 2016-06-15

Re: [PATCH 3/3] transport: don't show push status if --quiet is given

From: Avery Pennarun <hidden>
Date: 2016-06-15 22:47:09

On Wed, Aug 5, 2009 at 8:27 PM, Sverre Rabbelier[off-list ref] wrote:
On Wed, Aug 5, 2009 at 13:23, Jeff King[off-list ref] wrote:
quoted
+       for (; ref; ref = ref->next) {
+               switch (ref->status) {
+               case REF_STATUS_NONE:
+               case REF_STATUS_UPTODATE:
+               case REF_STATUS_OK:
+                       break;
+               default:
+                       return 1;
+               }
+       }
Is my C getting sloppy or is this a non-looping loop? AFAICS it either
return 1's on the first run, or breaks?
The "break" in this case breaks out of the switch, not the for.

Avery
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help