Esempio n. 1
0
 /// <summary>
 ///  Unlock the worktree
 /// </summary>
 public virtual void Unlock()
 {
     using (var handle = GetWorktreeHandle())
     {
         Proxy.git_worktree_unlock(handle);
         this.worktreeLock = Proxy.git_worktree_is_locked(handle);
     }
 }
Esempio n. 2
0
 /// <summary>
 ///  Lock the worktree
 /// </summary>
 public virtual void Lock(string reason)
 {
     using (var handle = GetWorktreeHandle())
     {
         Proxy.git_worktree_lock(handle, reason);
         this.worktreeLock = Proxy.git_worktree_is_locked(handle);
     }
 }
Esempio n. 3
0
 internal Worktree(Repository repo, string name, WorktreeLock worktreeLock)
 {
     this.parent       = repo;
     this.name         = name;
     this.worktreeLock = worktreeLock;
 }