(Relates to #683)
It would be nice if Rugged::Index and Rugged::Tree provided the same methods where possible. For example, it would be nice if both supported the same interface for reading and enumerating objects.
Some ideas:
- Both should support
fetch(path, default=nil, &block) for looking up a path entry.
- Both should support
each(prefix=nil) for enumerating entries efficiently.
- Other methods where it makes sense (e.g.
each_tree, each_blob).
Some of these might also extent to Rugged::Tree::Builder, but I'm not sure how feasible that is.