/// <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); } }
/// <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); } }
internal Worktree(Repository repo, string name, WorktreeLock worktreeLock) { this.parent = repo; this.name = name; this.worktreeLock = worktreeLock; }