DeleteBranch() public static method

public static DeleteBranch ( string branchName, bool mustBeMerged ) : void
branchName string
mustBeMerged bool
return void
コード例 #1
0
    void OnGUI()
    {
        if (branches.Length > 0)
        {
            selection = EditorGUILayout.Popup(selection, branches);

            if (GUILayout.Button("Delete Branch", GUILayout.MaxWidth(100)))
            {
                GitSystem.DeleteBranch(branches[selection], deleteOnlyIfMerged);
                Close();
            }
        }
        else
        {
            GUILayout.Label("No existing branches to delete...");
        }
    }