You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
installer: offer to specify the initial branch in new repositories
Git actually supports `init.defaultBranch` already since v2.28.0. GitHub
intends to switch the default name of initial branches to `main` Real
Soon Now. Let's follow the crowd and let Git for Windows' users specify
their preference explicitly (or leave the default to Git).
Signed-off-by: Johannes Schindelin <[email protected]>
if EdtDefaultBranch.Enabled and (WizardForm.CurPageID=DefaultBranchPage.ID) then
1626
+
// If the manual option was just checked, move the focus to the text box
1627
+
WizardForm.ActiveControl:=EdtDefaultBranch;
1628
+
end;
1629
+
1613
1630
procedureQueryUninstallValues; forward;
1614
1631
1615
1632
procedureInitializeWizard;
@@ -1618,6 +1635,7 @@ var
1618
1635
PuTTYSessions,EnvSSH:TArrayOfString;
1619
1636
BtnPlink:TButton;
1620
1637
Data:String;
1638
+
LblInfo:TLabel;
1621
1639
begin
1622
1640
InferredDefaultKeys:=TStringList.Create;
1623
1641
InferredDefaultValues:=TStringList.Create;
@@ -1840,6 +1858,50 @@ begin
1840
1858
end;
1841
1859
EditorSelectionChanged(NIL);
1842
1860
1861
+
(*
1862
+
* Create a custom page for modifying the default branch.
1863
+
*)
1864
+
1865
+
DefaultBranchPage:=CreatePage(PrevPageID,'Adjusting the name of the initial branch in new repositories','What would you like Git to name the initial branch after "git init"?',TabOrder,Top,Left);
1866
+
1867
+
// 1st choice
1868
+
RdbDefaultBranch[DB_Unspecified]:=CreateRadioButton(DefaultBranchPage,'Let Git decide','Let Git use its default branch name (currently: "master") for the initial branch'+#13+'in newly created repositories. The Git project <A HREF=https://sfconservancy.org/news/2020/jun/23/gitbranchname/>intends</A> to change this default to'+#13+'a more inclusive name in the near future.',TabOrder,Top,Left);
RdbDefaultBranch[DB_Manual]:=CreateRadioButton(DefaultBranchPage,'Override the default branch name for new repositories','<RED>NEW!</RED> Many teams already renamed their default branches; common choices are'+#13+'"main", "trunk" and "development". Specify the name "git init" should use for the'+#13+'initial branch:',TabOrder,Top,Left);
0 commit comments