Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-05-02 22:55:00 +0400
committernulltoken <emeric.fermas@gmail.com>2012-05-20 15:32:15 +0400
commit40bf30eae534d803173217d98d317fef21969685 (patch)
tree1040000cc417e93ade4dfd3092a6e608e8119783 /LibGit2Sharp/ContentChanges.cs
parent3d92ae43ed8554dcf33e9a0cce6e1c2717e21014 (diff)
Add ContentChanges type
Diffstat (limited to 'LibGit2Sharp/ContentChanges.cs')
-rw-r--r--LibGit2Sharp/ContentChanges.cs39
1 files changed, 39 insertions, 0 deletions
diff --git a/LibGit2Sharp/ContentChanges.cs b/LibGit2Sharp/ContentChanges.cs
new file mode 100644
index 00000000..cd16a99c
--- /dev/null
+++ b/LibGit2Sharp/ContentChanges.cs
@@ -0,0 +1,39 @@
+using System.Text;
+
+namespace LibGit2Sharp
+{
+ /// <summary>
+ /// Holds the changes between two <see cref = "Blob" />s.
+ /// </summary>
+ public class ContentChanges
+ {
+ private readonly StringBuilder patchBuilder = new StringBuilder();
+
+ protected ContentChanges()
+ {
+ }
+
+ /// <summary>
+ /// The number of lines added.
+ /// </summary>
+ public int LinesAdded { get; internal set; }
+
+ /// <summary>
+ /// The number of lines deleted.
+ /// </summary>
+ public int LinesDeleted { get; internal set; }
+
+ /// <summary>
+ /// The patch corresponding to these changes.
+ /// </summary>
+ public string Patch
+ {
+ get { return patchBuilder.ToString(); }
+ }
+
+ internal StringBuilder PatchBuilder
+ {
+ get { return patchBuilder; }
+ }
+ }
+}