@@ -35,6 +35,46 @@ public static CommitRewriteInfo From(Commit commit)
35
35
} ;
36
36
}
37
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
+
38
78
/// <summary>
39
79
/// Build a <see cref="CommitRewriteInfo"/> from the <see cref="Commit"/> passed in,
40
80
/// optionally overriding some of its properties
@@ -46,9 +86,9 @@ public static CommitRewriteInfo From(Commit commit)
46
86
/// <returns>A new <see cref="CommitRewriteInfo"/> object that matches the info for the
47
87
/// <paramref name="commit"/> with the optional parameters replaced..</returns>
48
88
public static CommitRewriteInfo From ( Commit commit ,
49
- Signature author = null ,
50
- Signature committer = null ,
51
- string message = null )
89
+ Signature author ,
90
+ Signature committer ,
91
+ string message )
52
92
{
53
93
var cri = From ( commit ) ;
54
94
cri . Author = author ?? cri . Author ;
0 commit comments