Example #1
0
 public Task CreateBranch(Reference reference)
 {
     _repo.Branches.Add(reference.Name, reference.Pointer);
     _branchLocks.Add(reference.Name, new object());
     push(reference.Name);
     return(Task.CompletedTask);
 }
Example #2
0
 public Task Tag(Reference reference) =>
 Task.FromResult(_repo.Tags.Add(reference.Name, reference.Pointer));