libgit2/libgit2sharp — pull request #192 by carlosmn (2012-06-28 07:06:28+00:00)
Title: Add the streaming indexer to the bindings

There are a few things that I'm not so sure about, style-wise.

Firstly, the indexer's stats are actually `unsigned int` in C, but if I try to put that in the struct, I get a warning that it's not CLS complaint, so it it may not work. @nulltoken, do you have any insights into this?

Secondly, I transform the stats into the C# variant after each add, which could be too much work, if the stats are looked up less often. I thought about doing it on demand, but that would mean locking and I worry that it would mean even more work.

Thirdly, is there some extablished convention whereby I can make clear that you shouldn't call `Indexer.Hash()` before the indexer is done?