@@ -42,15 +42,64 @@ public interface ISourceControlProvider
42
42
/// </summary>
43
43
/// <param name="remoteName"></param>
44
44
void Fetch ( [ Optional ] string remoteName ) ;
45
+
46
+ /// <summary>
47
+ /// Fetches the currently tracking remote and merges it into the CurrentBranch.
48
+ /// </summary>
45
49
void Pull ( ) ;
50
+
51
+ /// <summary>
52
+ /// Stages all modified files and commits to CurrentBranch.
53
+ /// </summary>
54
+ /// <param name="message"></param>
46
55
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>
47
62
void Merge ( string sourceBranch , string destinationBranch ) ;
63
+
64
+ /// <summary>
65
+ /// Checks out the target branch.
66
+ /// </summary>
67
+ /// <param name="branch"></param>
48
68
void Checkout ( string branch ) ;
69
+
70
+ /// <summary>
71
+ /// Creates and checks out a new branch.
72
+ /// </summary>
73
+ /// <param name="branch"></param>
49
74
void CreateBranch ( string branch ) ;
75
+
76
+ /// <summary>
77
+ /// Undoes uncommitted changes to a particular file.
78
+ /// </summary>
79
+ /// <param name="filePath"></param>
50
80
void Undo ( string filePath ) ;
81
+
82
+ /// <summary>
83
+ /// Reverts entire branch to the last commit.
84
+ /// </summary>
51
85
void Revert ( ) ;
86
+
87
+ /// <summary>
88
+ /// Adds untracked file to repository.
89
+ /// </summary>
90
+ /// <param name="filePath"></param>
52
91
void AddFile ( string filePath ) ;
92
+
93
+ /// <summary>
94
+ /// Removes file from tracking.
95
+ /// </summary>
96
+ /// <param name="filePath"></param>
53
97
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>
54
103
IEnumerable < IFileStatusEntry > Status ( ) ;
55
104
}
56
105
}
0 commit comments