mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-22 10:55:00 +00:00
feature!: now SourceGit
requires git >= 2.25.1
Some checks are pending
Some checks are pending
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
7b05b011aa
commit
6e501b1ee4
21 changed files with 97 additions and 139 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue