enhance: unstaged renamed file should use git restore --staged <path> <org_path> instead of git restore --staged <path>

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-06-01 11:19:41 +08:00
parent 6620bd193e
commit fa004ce31b
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View file

@ -21,7 +21,7 @@ namespace SourceGit.Commands
WorkingDirectory = repo;
Context = repo;
StringBuilder builder = new StringBuilder();
var builder = new StringBuilder();
builder.Append("restore ");
if (!string.IsNullOrEmpty(extra))
builder.Append(extra).Append(" ");