From c2404728b623588aa89920ae435b48af0fef011e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 22 Jun 2023 15:49:05 +0300 Subject: Add branch sub-option for git project vcs in bdep-new Also fix tests which failed if for the initial branch git-init defaults to the name other than 'master'. --- bdep/new.cli | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bdep/new.cli') diff --git a/bdep/new.cli b/bdep/new.cli index 8f3b094..c6dc8ee 100644 --- a/bdep/new.cli +++ b/bdep/new.cli @@ -501,7 +501,12 @@ namespace bdep \li|\cb{git} Initialize a \cb{git(1)} repository inside the project and generate - \cb{.gitignore} files.|| + \cb{.gitignore} files. Recognized version control system sub-options:| + + \li|\n\ \ \ \c{\b{branch=}\i{name}} + + Use the specified name for the initial branch in the newly created + repository.|| \dl| @@ -632,6 +637,7 @@ namespace bdep // class cmd_new_git_options { + string branch; }; class cmd_new_none_options -- cgit v1.1