diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-06-22 15:49:05 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-06-22 19:31:26 +0300 |
commit | c2404728b623588aa89920ae435b48af0fef011e (patch) | |
tree | ba739c37837b71dbc8881cad81204ac2ee6f50e4 /bdep/new.cli | |
parent | f95f24412ea85149556b34abb91f06e247d6db6d (diff) |
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'.
Diffstat (limited to 'bdep/new.cli')
-rw-r--r-- | bdep/new.cli | 8 |
1 files changed, 7 insertions, 1 deletions
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 |