Skip to content

Rugged::Tree and Rugged::Index do similar things but have different APIs #684

@ioquatix

Description

@ioquatix

(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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions