Hi, On Mon, 26 Feb 2007, Linus Torvalds wrote: > On Mon, 26 Feb 2007, Johannes Schindelin wrote: > > > > > So I'd rather have it return true if it matches, rather than false > > > if it matches and -1/1 if it doesn't. But that's water under the > > > bridge. > > > > In that case, you'd have to name it has_prefix() or hasprefix() rather > > than prefixcmp(), which C programmers used to the semantics of > > strcmp() expect to return a tristate result. > > Sure. Or "match_prefix()" or whatever. I agree. Well, if you look at fnmatch(), or our own match_pathspec(), rather not... Just my 2 cents: I can live with prefixcmp(). And since I use strcmp() to compare strings, not strings_eq() or similar, I am quite happy with prefixcmp(), too. Ciao, Dscho - 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