2010/12/16 Junio C Hamano <gitster@xxxxxxxxx>: > Nguyán ThÃi Ngác Duy <pclouds@xxxxxxxxx> writes: > >> Empty regex pattern should always match. But the exact behavior of >> regexec() may vary. Because it always matches anyway, we can just >> return 'matched' without calling regex machinery. > > Hmm, I just noticed that "git grep -e '' Makefile" fails on FBSD8 for > the same reason. > > I'd prefer a solution that is not about "special case $commit^{/}" but is > about "work around regcomp that cannot compile an empty regexp". Hmm.. if there is no compilation phase, we can redefine a macro to workaround. Perhaps prefer compat/regex to FBSD's implementation? -- Duy -- 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