feature<Remote>: add 'Prune' context menu for remote to prune dead branches without fetching

This commit is contained in:
leo 2021-11-17 16:12:26 +08:00
parent 0379d7e331
commit 9f58e0c715
6 changed files with 65 additions and 10 deletions

View file

@ -23,6 +23,11 @@ namespace SourceGit.Commands {
return Exec();
}
public bool Prune(string name) {
Args = $"remote prune {name}";
return Exec();
}
public bool SetURL(string name, string url) {
Args = $"remote set-url {name} {url}";
return Exec();