Skip to content

Move the Checkout method to the Repository class #107

Closed
@uluhonolulu

Description

@uluhonolulu

Two reasons for that:

  1. It is easier to discover there. Since we are talking about one of the most often used operation, it is logical to put it into the "root" class for better visibility.
  2. The implementation is going to involve several properties of the parent Repository object, not directly related to the BranchCollection class, so from the code perspective (Law of Demeter) we should put it into the Repository class.

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