add Repository#descendant_of?

cc @ymendel @brianmario @vmg 
See https://github.com/libgit2/libgit2/pull/2532.