File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 66
77namespace LibGit2Sharp
88{
9+ /// <summary>
10+ /// Represents the lock state of a Worktree
11+ /// </summary>
912 [ DebuggerDisplay ( "{DebuggerDisplay,nq}" ) ]
1013 public class WorktreeLock
1114 {
15+ /// <summary>
16+ /// Creates a new instance of <see cref="WorktreeLock"/> with default, unlocked, state
17+ /// </summary>
1218 public WorktreeLock ( ) : this ( false , null )
1319 {
1420
1521 }
1622
23+ /// <summary>
24+ /// Creates a new instance of <see cref="WorktreeLock"/>
25+ /// </summary>
26+ /// <param name="isLocked">the locked state</param>
27+ /// <param name="reason">the reason given for the lock</param>
1728 public WorktreeLock ( bool isLocked , string reason )
1829 {
1930 IsLocked = isLocked ;
2031 Reason = reason ;
2132 }
33+ /// <summary>
34+ /// Gets a flag indicating if the worktree is locked
35+ /// </summary>
2236 public virtual bool IsLocked { get ; }
37+
38+ /// <summary>
39+ /// Gets the reason, if set, for the lock
40+ /// </summary>
2341 public virtual string Reason { get ; }
2442
2543 private string DebuggerDisplay
You can’t perform that action at this time.
0 commit comments