forked from gitextensions/gitextensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gitextensions#3280: Optimize unstage/reset performance by git res…
…et/unstage batch files
- Loading branch information
Showing
12 changed files
with
308 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace GitCommands | ||
{ | ||
/// <summary> | ||
/// Result model for batch processing arguments and count of items for batch progress | ||
/// </summary> | ||
public sealed class BatchArgumentItem | ||
{ | ||
public BatchArgumentItem(ArgumentString argument, int count) | ||
{ | ||
Argument = argument; | ||
BatchItemsCount = count; | ||
} | ||
|
||
/// <summary> | ||
/// Batch command line argument | ||
/// </summary> | ||
public ArgumentString Argument { get; } | ||
|
||
/// <summary> | ||
/// Count of items in batch, used for batch progress update | ||
/// </summary> | ||
public int BatchItemsCount { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
|
||
namespace GitCommands | ||
{ | ||
/// <summary> | ||
/// Event arguments for batch progress updating | ||
/// </summary> | ||
public sealed class BatchProgressEventArgs : EventArgs | ||
{ | ||
public BatchProgressEventArgs(int batchItemsProcessed, bool executionResult) | ||
{ | ||
ProcessedCount = batchItemsProcessed; | ||
ExecutionResult = executionResult; | ||
} | ||
|
||
/// <summary> | ||
/// Number of items processed in this batch event | ||
/// </summary> | ||
public int ProcessedCount { get; } | ||
|
||
/// <summary> | ||
/// Batch execution result | ||
/// </summary> | ||
public bool ExecutionResult { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.