/
vasiukoff
/
sg
Обзор
Документация
Войти
/
vasiukoff
/
sg
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/Commands/Move.cs
23 строки
575 B
Nathan Baulch
fix: escape double quotes in quoted git command strings (#1559)
11 июл 2025, 10:53
Не верифицирован
11 июл 2025, 10:53
9c03921
Код
Авторство
О чём код?
using System.Text; namespace SourceGit.Commands { public class Move : Command { public Move(string repo, string oldPath, string newPath, bool force) { WorkingDirectory = repo; Context = repo; var builder = new StringBuilder(); builder.Append("mv -v "); if (force) builder.Append("-f "); builder.Append(oldPath.Quoted()); builder.Append(' '); builder.Append(newPath.Quoted()); Args = builder.ToString(); } } }