feature!: now SourceGit requires git >= 2.25.1
Some checks are pending
Continuous Integration / Build (push) Waiting to run
Continuous Integration / Prepare version string (push) Waiting to run
Continuous Integration / Package (push) Blocked by required conditions
Localization Check / localization-check (push) Waiting to run

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-06-02 22:38:00 +08:00
parent 7b05b011aa
commit 6e501b1ee4
No known key found for this signature in database
21 changed files with 97 additions and 139 deletions

View file

@ -1868,7 +1868,7 @@ namespace SourceGit.Views
if (!selection.HasLeftChanges)
{
new Commands.Add(repo.FullPath, [change.Path]).Exec();
new Commands.Add(repo.FullPath, change).Exec();
}
else
{
@ -1928,10 +1928,8 @@ namespace SourceGit.Views
{
if (change.DataForAmend != null)
new Commands.UnstageChangesForAmend(repo.FullPath, [change]).Exec();
else if (change.Index == Models.ChangeState.Renamed)
new Commands.Restore(repo.FullPath, [change.Path, change.OriginalPath], "--staged").Exec();
else
new Commands.Restore(repo.FullPath, [change.Path], "--staged").Exec();
new Commands.Restore(repo.FullPath, change).Exec();
}
else
{