Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit 52021c7

Browse files
committed
Added some console output
1 parent 4e5050a commit 52021c7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

GitRewrite/CleanupTask/CleanupTaskBase.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,26 @@ public void Run()
5555

5656
writeStep.Start(new ThreadParams(RepositoryPath, _objectsToWrite));
5757

58+
Console.WriteLine("Reading commits...");
59+
60+
long commitNumber = 1;
5861
foreach (var parallelActionResult in CommitWalker.CommitsInOrder(RepositoryPath)
5962
.AsParallel()
6063
.AsOrdered()
6164
.Select(ParallelStep))
65+
{
66+
Console.Write("\rProcessing commit " + commitNumber++);
6267
SynchronousStep(parallelActionResult);
68+
}
6369

6470
_objectsToWrite.CompleteAdding();
71+
72+
Console.WriteLine();
73+
Console.WriteLine("Writing objects...");
74+
6575
writeStep.Join();
6676

77+
Console.WriteLine("Updating refs...");
6778
if (_rewrittenCommits.Any())
6879
Refs.Update(RepositoryPath, _rewrittenCommits);
6980
}

0 commit comments

Comments
 (0)