Skip to content

Add public Property to Repository in Commit, Branch, Tag, ... #665

Closed
@amorph777

Description

@amorph777

It would be great to have access to the Repository-Object from every class derived from GitObject. The Reference is already there, but its not accessible from outside. It should be a Property with public getter.
The reason why: in an UI-Application where objects are databound, a ViewModel often just has access to GitObjects like Commit, Branch, Tags but has to execute operations on the Repository (e.g. implementing a ContextMenu for a Branch where you can Right-Click and choose "checkout", so you got the selected Branch but need a reference to the Repository in order to execute the checkout).

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions