libgit2/libgit2 — pull request #799 by yorah (2012-07-03 15:59:37+00:00)
Title: Fix/issue 787

@aroben @arrbee This is the beginning of a fix for #787.

However, while I was digging into the code (with the help of @nulltoken), I started to think about some other edge cases. These can be found in a [question](http://stackoverflow.com/q/11314419) I asked on stackoverflow.

As I discovered the joy of pathspecs only a few hours ago, please tell me if you think I'm going in entirely the wrong direction ;)