@@ -3,7 +3,7 @@ namespace LibGit2Sharp
3
3
/// <summary>
4
4
/// Commit metadata when rewriting history
5
5
/// </summary>
6
- public sealed class CommitRewriteInfo
6
+ public sealed partial class CommitRewriteInfo
7
7
{
8
8
/// <summary>
9
9
/// The author to be used for the new commit
@@ -34,68 +34,5 @@ public static CommitRewriteInfo From(Commit commit)
34
34
Message = commit . Message
35
35
} ;
36
36
}
37
-
38
- /// <summary>
39
- /// Build a <see cref="CommitRewriteInfo"/> from the <see cref="Commit"/> passed in,
40
- /// optionally overriding some of its properties
41
- /// </summary>
42
- /// <param name="commit">The <see cref="Commit"/> whose information is to be copied</param>
43
- /// <param name="author">Optional override for the author</param>
44
- /// <returns>A new <see cref="CommitRewriteInfo"/> object that matches the info for the
45
- /// <paramref name="commit"/> with the optional parameters replaced..</returns>
46
- public static CommitRewriteInfo From ( Commit commit , Signature author )
47
- {
48
- return From ( commit , author , null , null ) ;
49
- }
50
-
51
- /// <summary>
52
- /// Build a <see cref="CommitRewriteInfo"/> from the <see cref="Commit"/> passed in,
53
- /// optionally overriding some of its properties
54
- /// </summary>
55
- /// <param name="commit">The <see cref="Commit"/> whose information is to be copied</param>
56
- /// <param name="message">Optional override for the message</param>
57
- /// <returns>A new <see cref="CommitRewriteInfo"/> object that matches the info for the
58
- /// <paramref name="commit"/> with the optional parameters replaced..</returns>
59
- public static CommitRewriteInfo From ( Commit commit , string message )
60
- {
61
- return From ( commit , null , null , message ) ;
62
- }
63
-
64
- /// <summary>
65
- /// Build a <see cref="CommitRewriteInfo"/> from the <see cref="Commit"/> passed in,
66
- /// optionally overriding some of its properties
67
- /// </summary>
68
- /// <param name="commit">The <see cref="Commit"/> whose information is to be copied</param>
69
- /// <param name="author">Optional override for the author</param>
70
- /// <param name="committer">Optional override for the committer</param>
71
- /// <returns>A new <see cref="CommitRewriteInfo"/> object that matches the info for the
72
- /// <paramref name="commit"/> with the optional parameters replaced..</returns>
73
- public static CommitRewriteInfo From ( Commit commit , Signature author , Signature committer )
74
- {
75
- return From ( commit , author , committer , null ) ;
76
- }
77
-
78
- /// <summary>
79
- /// Build a <see cref="CommitRewriteInfo"/> from the <see cref="Commit"/> passed in,
80
- /// optionally overriding some of its properties
81
- /// </summary>
82
- /// <param name="commit">The <see cref="Commit"/> whose information is to be copied</param>
83
- /// <param name="author">Optional override for the author</param>
84
- /// <param name="committer">Optional override for the committer</param>
85
- /// <param name="message">Optional override for the message</param>
86
- /// <returns>A new <see cref="CommitRewriteInfo"/> object that matches the info for the
87
- /// <paramref name="commit"/> with the optional parameters replaced..</returns>
88
- public static CommitRewriteInfo From ( Commit commit ,
89
- Signature author ,
90
- Signature committer ,
91
- string message )
92
- {
93
- var cri = From ( commit ) ;
94
- cri . Author = author ?? cri . Author ;
95
- cri . Committer = committer ?? cri . Committer ;
96
- cri . Message = message ?? cri . Message ;
97
-
98
- return cri ;
99
- }
100
37
}
101
38
}
0 commit comments