@@ -572,7 +572,7 @@ public static string Clone(string sourceUrl, string workdirPath,
572
572
/// <param name="path">Path of the file to blame.</param>
573
573
/// <param name="options">Specifies optional parameters; if null, the defaults are used.</param>
574
574
/// <returns>The blame for the file.</returns>
575
- public BlameHunkCollection Blame ( string path , BlameOptions options = null )
575
+ public BlameHunkCollection Blame ( string path , BlameOptions options )
576
576
{
577
577
return new BlameHunkCollection ( this , Handle , path , options ?? new BlameOptions ( ) ) ;
578
578
}
@@ -588,7 +588,7 @@ public BlameHunkCollection Blame(string path, BlameOptions options = null)
588
588
/// <param name="options"><see cref="CheckoutOptions"/> controlling checkout behavior.</param>
589
589
/// <param name="signature">Identity for use when updating the reflog.</param>
590
590
/// <returns>The <see cref="Branch"/> that was checked out.</returns>
591
- public Branch Checkout ( string committishOrBranchSpec , CheckoutOptions options , Signature signature = null )
591
+ public Branch Checkout ( string committishOrBranchSpec , CheckoutOptions options , Signature signature )
592
592
{
593
593
Ensure . ArgumentNotNullOrEmptyString ( committishOrBranchSpec , "committishOrBranchSpec" ) ;
594
594
Ensure . ArgumentNotNull ( options , "options" ) ;
@@ -638,7 +638,7 @@ public Branch Checkout(string committishOrBranchSpec, CheckoutOptions options, S
638
638
/// <param name="options"><see cref="CheckoutOptions"/> controlling checkout behavior.</param>
639
639
/// <param name="signature">Identity for use when updating the reflog.</param>
640
640
/// <returns>The <see cref="Branch"/> that was checked out.</returns>
641
- public Branch Checkout ( Branch branch , CheckoutOptions options , Signature signature = null )
641
+ public Branch Checkout ( Branch branch , CheckoutOptions options , Signature signature )
642
642
{
643
643
Ensure . ArgumentNotNull ( branch , "branch" ) ;
644
644
Ensure . ArgumentNotNull ( options , "options" ) ;
@@ -675,7 +675,7 @@ public Branch Checkout(Branch branch, CheckoutOptions options, Signature signatu
675
675
/// <param name="options"><see cref="CheckoutOptions"/> controlling checkout behavior.</param>
676
676
/// <param name="signature">Identity for use when updating the reflog.</param>
677
677
/// <returns>The <see cref="Branch"/> that was checked out.</returns>
678
- public Branch Checkout ( Commit commit , CheckoutOptions options , Signature signature = null )
678
+ public Branch Checkout ( Commit commit , CheckoutOptions options , Signature signature )
679
679
{
680
680
Ensure . ArgumentNotNull ( commit , "commit" ) ;
681
681
Ensure . ArgumentNotNull ( options , "options" ) ;
@@ -736,7 +736,7 @@ private void CheckoutTree(
736
736
/// <param name="commit">The target commit object.</param>
737
737
/// <param name="signature">Identity for use when updating the reflog.</param>
738
738
/// <param name="logMessage">Message to use when updating the reflog.</param>
739
- public void Reset ( ResetMode resetMode , Commit commit , Signature signature = null , string logMessage = null )
739
+ public void Reset ( ResetMode resetMode , Commit commit , Signature signature , string logMessage )
740
740
{
741
741
Ensure . ArgumentNotNull ( commit , "commit" ) ;
742
742
@@ -759,7 +759,7 @@ public void Reset(ResetMode resetMode, Commit commit, Signature signature = null
759
759
/// <param name = "committishOrBranchSpec">A revparse spec for the commit or branch to checkout paths from.</param>
760
760
/// <param name="paths">The paths to checkout. Will throw if null is passed in. Passing an empty enumeration results in nothing being checked out.</param>
761
761
/// <param name="checkoutOptions">Collection of parameters controlling checkout behavior.</param>
762
- public void CheckoutPaths ( string committishOrBranchSpec , IEnumerable < string > paths , CheckoutOptions checkoutOptions = null )
762
+ public void CheckoutPaths ( string committishOrBranchSpec , IEnumerable < string > paths , CheckoutOptions checkoutOptions )
763
763
{
764
764
Ensure . ArgumentNotNullOrEmptyString ( committishOrBranchSpec , "committishOrBranchSpec" ) ;
765
765
Ensure . ArgumentNotNull ( paths , "paths" ) ;
@@ -783,7 +783,7 @@ public void CheckoutPaths(string committishOrBranchSpec, IEnumerable<string> pat
783
783
/// If set, the passed <paramref name="paths"/> will be treated as explicit paths.
784
784
/// Use these options to determine how unmatched explicit paths should be handled.
785
785
/// </param>
786
- public void Reset ( Commit commit , IEnumerable < string > paths = null , ExplicitPathsOptions explicitPathsOptions = null )
786
+ public void Reset ( Commit commit , IEnumerable < string > paths , ExplicitPathsOptions explicitPathsOptions )
787
787
{
788
788
if ( Info . IsBare )
789
789
{
@@ -806,7 +806,7 @@ public void Reset(Commit commit, IEnumerable<string> paths = null, ExplicitPaths
806
806
/// <param name="committer">The <see cref="Signature"/> of who added the change to the repository.</param>
807
807
/// <param name="options">The <see cref="CommitOptions"/> that specify the commit behavior.</param>
808
808
/// <returns>The generated <see cref="LibGit2Sharp.Commit"/>.</returns>
809
- public Commit Commit ( string message , Signature author , Signature committer , CommitOptions options = null )
809
+ public Commit Commit ( string message , Signature author , Signature committer , CommitOptions options )
810
810
{
811
811
if ( options == null )
812
812
{
@@ -992,7 +992,7 @@ private static string ReadContentFromResource(Assembly assembly, string partialR
992
992
/// <param name="merger">The <see cref="Signature"/> of who is performing the merge.</param>
993
993
/// <param name="options">Specifies optional parameters controlling merge behavior; if null, the defaults are used.</param>
994
994
/// <returns>The <see cref="MergeResult"/> of the merge.</returns>
995
- public MergeResult Merge ( Commit commit , Signature merger , MergeOptions options = null )
995
+ public MergeResult Merge ( Commit commit , Signature merger , MergeOptions options )
996
996
{
997
997
Ensure . ArgumentNotNull ( commit , "commit" ) ;
998
998
Ensure . ArgumentNotNull ( merger , "merger" ) ;
@@ -1012,7 +1012,7 @@ public MergeResult Merge(Commit commit, Signature merger, MergeOptions options =
1012
1012
/// <param name="merger">The <see cref="Signature"/> of who is performing the merge.</param>
1013
1013
/// <param name="options">Specifies optional parameters controlling merge behavior; if null, the defaults are used.</param>
1014
1014
/// <returns>The <see cref="MergeResult"/> of the merge.</returns>
1015
- public MergeResult Merge ( Branch branch , Signature merger , MergeOptions options = null )
1015
+ public MergeResult Merge ( Branch branch , Signature merger , MergeOptions options )
1016
1016
{
1017
1017
Ensure . ArgumentNotNull ( branch , "branch" ) ;
1018
1018
Ensure . ArgumentNotNull ( merger , "merger" ) ;
@@ -1033,7 +1033,7 @@ public MergeResult Merge(Branch branch, Signature merger, MergeOptions options =
1033
1033
/// <param name="merger">The <see cref="Signature"/> of who is performing the merge.</param>
1034
1034
/// <param name="options">Specifies optional parameters controlling merge behavior; if null, the defaults are used.</param>
1035
1035
/// <returns>The <see cref="MergeResult"/> of the merge.</returns>
1036
- public MergeResult Merge ( string committish , Signature merger , MergeOptions options = null )
1036
+ public MergeResult Merge ( string committish , Signature merger , MergeOptions options )
1037
1037
{
1038
1038
Ensure . ArgumentNotNull ( committish , "committish" ) ;
1039
1039
Ensure . ArgumentNotNull ( merger , "merger" ) ;
@@ -1097,7 +1097,7 @@ internal MergeResult MergeFetchHeads(Signature merger, MergeOptions options)
1097
1097
/// <param name="reverter">The <see cref="Signature"/> of who is performing the revert.</param>
1098
1098
/// <param name="options"><see cref="RevertOptions"/> controlling revert behavior.</param>
1099
1099
/// <returns>The result of the revert.</returns>
1100
- public RevertResult Revert ( Commit commit , Signature reverter , RevertOptions options = null )
1100
+ public RevertResult Revert ( Commit commit , Signature reverter , RevertOptions options )
1101
1101
{
1102
1102
Ensure . ArgumentNotNull ( commit , "commit" ) ;
1103
1103
Ensure . ArgumentNotNull ( reverter , "reverter" ) ;
@@ -1163,7 +1163,8 @@ public RevertResult Revert(Commit commit, Signature reverter, RevertOptions opti
1163
1163
revertCommit = this . Commit (
1164
1164
Info . Message ,
1165
1165
author : reverter ,
1166
- committer : reverter ) ;
1166
+ committer : reverter ,
1167
+ options : null ) ;
1167
1168
}
1168
1169
}
1169
1170
@@ -1185,7 +1186,7 @@ public RevertResult Revert(Commit commit, Signature reverter, RevertOptions opti
1185
1186
/// <param name="committer">The <see cref="Signature"/> of who is performing the cherry pick.</param>
1186
1187
/// <param name="options"><see cref="CherryPickOptions"/> controlling cherry pick behavior.</param>
1187
1188
/// <returns>The result of the cherry pick.</returns>
1188
- public CherryPickResult CherryPick ( Commit commit , Signature committer , CherryPickOptions options = null )
1189
+ public CherryPickResult CherryPick ( Commit commit , Signature committer , CherryPickOptions options )
1189
1190
{
1190
1191
Ensure . ArgumentNotNull ( commit , "commit" ) ;
1191
1192
Ensure . ArgumentNotNull ( committer , "committer" ) ;
@@ -1221,7 +1222,7 @@ public CherryPickResult CherryPick(Commit commit, Signature committer, CherryPic
1221
1222
Commit cherryPickCommit = null ;
1222
1223
if ( options . CommitOnSuccess )
1223
1224
{
1224
- cherryPickCommit = this . Commit ( Info . Message , commit . Author , committer ) ;
1225
+ cherryPickCommit = this . Commit ( Info . Message , commit . Author , committer , null ) ;
1225
1226
}
1226
1227
1227
1228
result = new CherryPickResult ( CherryPickStatus . CherryPicked , cherryPickCommit ) ;
@@ -1364,7 +1365,7 @@ private MergeResult NormalMerge(GitMergeHeadHandle[] mergeHeads, Signature merge
1364
1365
if ( options . CommitOnSuccess )
1365
1366
{
1366
1367
// Commit the merge
1367
- mergeCommit = Commit ( Info . Message , author : merger , committer : merger ) ;
1368
+ mergeCommit = Commit ( Info . Message , author : merger , committer : merger , options : null ) ;
1368
1369
}
1369
1370
1370
1371
mergeResult = new MergeResult ( MergeStatus . NonFastForward , mergeCommit ) ;
0 commit comments