libgit2/libgit2 — pull request #2718 by carlosmn (2014-11-19 18:00:26+00:00)
Title: peel: reject bad queries with EPEEL

There are some combination of objects and target types which we know
cannot be fulfilled. Return EPEEL for those to signify that there is a
mismatch in the user-provided data and what the object model is capable
of satisfying.

This should resolve #2627.