diff options
author | Mike Minns <mminns@itofinity.co.uk> | 2018-11-06 23:31:07 +0300 |
---|---|---|
committer | Mike Minns <mminns@itofinity.co.uk> | 2018-11-06 23:31:07 +0300 |
commit | 222d4c432303063aee5f7b0fbb603db102a848f7 (patch) | |
tree | 2e3763963cd46d6b07beeed4c3acfea2cf9609b5 | |
parent | 9d17daacf9dbf0a424d2a2a449a41dba8961c8f4 (diff) |
Issue-1471 Added code comments to WorktreeLock
-rw-r--r-- | LibGit2Sharp/WorktreeLock.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/LibGit2Sharp/WorktreeLock.cs b/LibGit2Sharp/WorktreeLock.cs index 7362102a..4ae5d799 100644 --- a/LibGit2Sharp/WorktreeLock.cs +++ b/LibGit2Sharp/WorktreeLock.cs @@ -6,20 +6,38 @@ using System.Text; namespace LibGit2Sharp { + /// <summary> + /// Represents the lock state of a Worktree + /// </summary> [DebuggerDisplay("{DebuggerDisplay,nq}")] public class WorktreeLock { + /// <summary> + /// Creates a new instance of <see cref="WorktreeLock"/> with default, unlocked, state + /// </summary> public WorktreeLock() : this(false, null) { } + /// <summary> + /// Creates a new instance of <see cref="WorktreeLock"/> + /// </summary> + /// <param name="isLocked">the locked state</param> + /// <param name="reason">the reason given for the lock</param> public WorktreeLock(bool isLocked, string reason) { IsLocked = isLocked; Reason = reason; } + /// <summary> + /// Gets a flag indicating if the worktree is locked + /// </summary> public virtual bool IsLocked { get; } + + /// <summary> + /// Gets the reason, if set, for the lock + /// </summary> public virtual string Reason { get; } private string DebuggerDisplay |