mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
feature<Dashboard>: add menu to unset upstream and cancel tracking when deleting related remote branches
This commit is contained in:
parent
f041adb2b3
commit
584bac74f9
5 changed files with 37 additions and 7 deletions
|
@ -21,7 +21,12 @@ namespace SourceGit.Commands {
|
|||
}
|
||||
|
||||
public void SetUpstream(string upstream) {
|
||||
Args = $"branch {target} -u {upstream}";
|
||||
Args = $"branch {target} ";
|
||||
if (string.IsNullOrEmpty(upstream)) {
|
||||
Args += "--unset-upstream";
|
||||
} else {
|
||||
Args += $"-u {upstream}";
|
||||
}
|
||||
Exec();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue