refactor: rewrite git restore integration

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-06-02 12:14:22 +08:00
parent 80df53cf04
commit 78f9ae2fa9
No known key found for this signature in database
5 changed files with 71 additions and 18 deletions

View file

@ -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)