2007/9/1, Junio C Hamano : > I think it is conceptually simpler on the show_reference side to > allow (filter.pattern == NULL) and say: > > if (!filter->pattern || !fnmatch(filter->pattern, refname, 0)) { > ... show that ref ... > } > > It is not such a big deal now you do not do newpattern > allocation anymore, so I'll apply the patch as is. > You are right. I changed the patch also to reflect this. I cannot send a reply using my email client now, so I send it attached to this response to avoid gmail breaks in long lines.