mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-22 02:45:00 +00:00
refactor: rewrite git restore
integration
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
80df53cf04
commit
78f9ae2fa9
5 changed files with 71 additions and 18 deletions
|
@ -124,9 +124,9 @@ namespace SourceGit.ViewModels
|
|||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < changes.Count; i += 10)
|
||||
for (int i = 0; i < changes.Count; i += 32)
|
||||
{
|
||||
var count = Math.Min(10, changes.Count - i);
|
||||
var count = Math.Min(32, changes.Count - i);
|
||||
var step = changes.GetRange(i, count);
|
||||
succ = new Commands.Stash(_repo.FullPath).Use(log).Push(Message, step, KeepIndex);
|
||||
if (!succ)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue