initialize method

  1. @override
List<UndoableCommand> initialize()
override

Implementation

@override
List<UndoableCommand> initialize() {
  Repository repository = Repository(Directory.current.path);
  debugPrintToConsole(message: "Repository path is ${repository.path}");
  return [
    CheckoutToBranchCommand(
      repository,
      Branch(branchName, repository),
      commitSha,
    ),
  ];
}