@@ -60,15 +60,13 @@ public ICommit FindMergeBase(ICommit commit, ICommit otherCommit)
6060 return new Commit ( mergeBase ) ;
6161 } ) . ExecuteAsync ( ) . Result ;
6262 }
63-
6463 public int GetNumberOfUncommittedChanges ( )
6564 {
6665 return new OperationWithExponentialBackoff < LibGit2Sharp . LockedFileException , int > ( new ThreadSleep ( ) , log , ( ) =>
6766 {
6867 return GetNumberOfUncommittedChangesInternal ( ) ;
6968 } ) . ExecuteAsync ( ) . Result ;
7069 }
71-
7270 private int GetNumberOfUncommittedChangesInternal ( )
7371 {
7472 // check if we have a branch tip at all to behave properly with empty repos
@@ -87,26 +85,24 @@ private int GetNumberOfUncommittedChangesInternal()
8785 catch ( Exception )
8886 {
8987 return int . MaxValue ; // this should be somewhat puzzling to see,
90- // so we may have reached our goal to show that
91- // that repo is really "Dirty"...
88+ // so we may have reached our goal to show that
89+ // that repo is really "Dirty"...
9290 }
9391 }
9492
9593 // gets all changes of the last commit vs Staging area and WT
9694 var changes = repositoryInstance . Diff . Compare < TreeChanges > ( repositoryInstance . Head . Tip . Tree ,
97- DiffTargets . Index | DiffTargets . WorkingDirectory ) ;
95+ DiffTargets . Index | DiffTargets . WorkingDirectory ) ;
9896
9997 return changes . Count ;
10098 }
101-
10299 public void CreateBranchForPullRequestBranch ( AuthenticationInfo auth )
103100 {
104101 new OperationWithExponentialBackoff < LockedFileException > ( new ThreadSleep ( ) , log , ( ) =>
105102 {
106103 CreateBranchForPullRequestBranchInternal ( auth ) ;
107104 } ) . ExecuteAsync ( ) . Wait ( ) ;
108105 }
109-
110106 private void CreateBranchForPullRequestBranchInternal ( AuthenticationInfo auth )
111107 {
112108 var network = repositoryInstance . Network ;
@@ -164,7 +160,6 @@ private void CreateBranchForPullRequestBranchInternal(AuthenticationInfo auth)
164160 throw new WarningException ( message ) ;
165161 }
166162 }
167-
168163 public void Clone ( string sourceUrl , string workdirPath , AuthenticationInfo auth )
169164 {
170165 try
@@ -198,7 +193,6 @@ public void Checkout(string commitOrBranchSpec)
198193 {
199194 new OperationWithExponentialBackoff < LockedFileException > ( new ThreadSleep ( ) , log , ( ) => Commands . Checkout ( repositoryInstance , commitOrBranchSpec ) ) . ExecuteAsync ( ) . Wait ( ) ;
200195 }
201-
202196 public void Fetch ( string remote , IEnumerable < string > refSpecs , AuthenticationInfo auth , string logMessage )
203197 {
204198 new OperationWithExponentialBackoff < LockedFileException > ( new ThreadSleep ( ) , log , ( ) => Commands . Fetch ( ( Repository ) repositoryInstance , remote , refSpecs , GetFetchOptions ( auth ) , logMessage ) ) . ExecuteAsync ( ) . Wait ( ) ;
0 commit comments