Skip to content

Commit 6176f0d

Browse files
committed
added docstrings
1 parent 4023d03 commit 6176f0d

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

RetailCoder.VBE/SourceControl/ISourceControlProvider.cs

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,64 @@ public interface ISourceControlProvider
4242
/// </summary>
4343
/// <param name="remoteName"></param>
4444
void Fetch([Optional] string remoteName);
45+
46+
/// <summary>
47+
/// Fetches the currently tracking remote and merges it into the CurrentBranch.
48+
/// </summary>
4549
void Pull();
50+
51+
/// <summary>
52+
/// Stages all modified files and commits to CurrentBranch.
53+
/// </summary>
54+
/// <param name="message"></param>
4655
void Commit(string message);
56+
57+
/// <summary>
58+
/// Merges the source branch into the desitnation.
59+
/// </summary>
60+
/// <param name="sourceBranch"></param>
61+
/// <param name="destinationBranch"></param>
4762
void Merge(string sourceBranch, string destinationBranch);
63+
64+
/// <summary>
65+
/// Checks out the target branch.
66+
/// </summary>
67+
/// <param name="branch"></param>
4868
void Checkout(string branch);
69+
70+
/// <summary>
71+
/// Creates and checks out a new branch.
72+
/// </summary>
73+
/// <param name="branch"></param>
4974
void CreateBranch(string branch);
75+
76+
/// <summary>
77+
/// Undoes uncommitted changes to a particular file.
78+
/// </summary>
79+
/// <param name="filePath"></param>
5080
void Undo(string filePath);
81+
82+
/// <summary>
83+
/// Reverts entire branch to the last commit.
84+
/// </summary>
5185
void Revert();
86+
87+
/// <summary>
88+
/// Adds untracked file to repository.
89+
/// </summary>
90+
/// <param name="filePath"></param>
5291
void AddFile(string filePath);
92+
93+
/// <summary>
94+
/// Removes file from tracking.
95+
/// </summary>
96+
/// <param name="filePath"></param>
5397
void RemoveFile(string filePath);
98+
99+
/// <summary>
100+
/// Returns a collection of file status entries.
101+
/// Semantically the same as calling $git status.
102+
/// </summary>
54103
IEnumerable<IFileStatusEntry> Status();
55104
}
56105
}

0 commit comments

Comments
 (0)