mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-26 11:51:17 +08:00
* `--rebase-todo-editor` launches this app as a git `sequence.editor` * `--rebase-message-editor` launches this app as a git `core.editor` which runs on background by reading rebasing jobs * `--core-editor` launches this app as a git `core.editor` * `--askpass` launches this app as a SSH askpass program
27 lines
667 B
C#
27 lines
667 B
C#
namespace SourceGit.Commands
|
|
{
|
|
public class Rebase : Command
|
|
{
|
|
public Rebase(string repo, string basedOn, bool autoStash)
|
|
{
|
|
WorkingDirectory = repo;
|
|
Context = repo;
|
|
Args = "rebase ";
|
|
if (autoStash)
|
|
Args += "--autostash ";
|
|
Args += basedOn;
|
|
}
|
|
}
|
|
|
|
public class InteractiveRebase : Command
|
|
{
|
|
public InteractiveRebase(string repo, string basedOn)
|
|
{
|
|
WorkingDirectory = repo;
|
|
Context = repo;
|
|
Editor = EditorType.RebaseEditor;
|
|
Args = $"rebase -i --autosquash {basedOn}";
|
|
}
|
|
}
|
|
}
|