Recently I saw both this question and this question where the answers say you can use git archive to retrieve a single file from a remote git repository. This is great, and I would like to be able to emulate that functionality using LibGit2Sharp.
I have looked at the source code, but I can't find anything that really does archiving. There's an ArchiverBase class, but this seems like it's just meant to be derived from, and I can't see anything that derives from it. ObjectDatabase has an Archive() method that uses an ArchiverBase parameter, but none of the ArchiverBase methods are really implemented. Do I need to derive ArchiverBase and overwrite its methods myself? How would I go about that? Has it already been done in some other class?
In short, How can I emulate git archive using LibGit2Sharp to retrieve a single file as described in the linked questions?
 
     
    