2008/6/30 Junio C Hamano <gitster@xxxxxxxxx>: > Miklos Vajna <vmiklos@xxxxxxxxxxxxxx> writes: >> + /* See if remote matches <name>~<number>, or <name>^ */ >> + ptr = strrchr(remote, '^'); >> + if (ptr && ptr[1] == '\0') { >> + len = strlen(remote); >> + while ((ptr = (char *)memrchr(remote, '^', len))) >> + if (ptr && ptr[1] == '\0') >> + len = ptr - remote - 1; >> + else >> + break; > > That's a funny way to say: > > for (len = 0, ptr = remote + strlen(remote); > remote < ptr && ptr[-1] == '^'; > ptr--) > len++; > Besides, Cygwin has no memrchr -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html