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
Copy file name to clipboardExpand all lines: contribute.m
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,10 @@ function contribute(repoName, printLevel, autoOption)
3
3
%
4
4
% PURPOSE: displays a menu and calls the respective subfunctions
5
5
%
6
-
% 1. Start a new feature (branch):
7
-
% 2. Select an existing feature (branch) to work on.
8
-
% 3. Publish a feature (branch).
9
-
% 4. Delete a feature (branch).
6
+
% 1. Start a new branch:
7
+
% 2. Select an existing branch to work on.
8
+
% 3. Publish a branch.
9
+
% 4. Delete a branch.
10
10
% 5. Update the fork
11
11
%
12
12
% INPUT:
@@ -78,7 +78,7 @@ function contribute(repoName, printLevel, autoOption)
78
78
ifautoOptionFlag
79
79
choice =autoOption;
80
80
else
81
-
choice = input('\n (You can abort any process using CTRL+C)\n\n [1] Start a new feature (branch).\n [2] Select an existing feature (branch) to work on.\n [3] Publish a feature (branch).\n [4] Delete a feature (branch).\n [5] Update the fork.\n\n -> Please select what you want to do (enter the number): ', 's');
81
+
choice = input('\n (You can abort any process using CTRL+C)\n\n [1] Start a new branch.\n [2] Select an existing branch to work on.\n [3] Publish a branch.\n [4] Delete a branch.\n [5] Update the fork.\n\n -> Please select what you want to do (enter the number): ', 's');
82
82
choice = str2num(choice);
83
83
end
84
84
@@ -87,21 +87,21 @@ function contribute(repoName, printLevel, autoOption)
87
87
error('Please enter a number between 1 and 5.')
88
88
else
89
89
if ~isempty(choice) && length(choice) >0
90
-
% ask for a name of the feature/branch
90
+
% ask for a name of the branch
91
91
ifchoice==1
92
92
93
-
% list the available features if the fork is already configured
93
+
% list the available branches if the fork is already configured
94
94
if exist('gitConf.fullForkDir', 'var')
95
-
%list all available features
96
-
listFeatures();
95
+
%list all available branches
96
+
listBranches();
97
97
end
98
98
99
99
% define a name of an example branch
100
100
exampleBranch =gitConf.exampleBranch;
101
101
102
102
reply ='';
103
103
while isempty(reply)
104
-
reply = input([' -> Please enter a name of the new feature (branch) that you want to work on (example: ', exampleBranch, '): '], 's');
104
+
reply = input([' -> Please enter a name of the new branch that you want to work on (example: ', exampleBranch, '): '], 's');
105
105
if ~isempty(strfind(reply, 'develop')) || ~isempty(strfind(reply, 'master'))
106
106
reply ='';
107
107
fprintf([gitCmd.lead, 'Please use a different name that does not contain <develop> or <master>.', gitCmd.fail, gitCmd.trail]);
@@ -115,8 +115,8 @@ function contribute(repoName, printLevel, autoOption)
0 commit comments