public static void RemoveRemote() { int gind = UI.getIndex("select which remote to remove by index", curRemote.ToArray()); removeRemIndex(gind); SaveConfig(); }
public static void PromptChangeRemote() { int i = UI.getIndex("Select which remote to change", curRemote.ToArray()); Console.WriteLine("new remote name?"); ChangeRemote(i, Console.ReadLine()); }
public static void PromptCheckoutNB() { //first work out if we want to chekout a 'new' branch? //we might not //get list of all branches please string[] brancN = git.getAllBranchNames(); if (brancN.Length == 1)//only the 1, making new { Console.WriteLine("Only 1 branch found, making new branch is the only option here"); prompNB(); } else { //print them out please int index = UI.getIndex("pick branch to checkout", brancN); CheckoutBranch(brancN[index], false); } }