File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -163,19 +163,31 @@ define(['d3'], function () {
163
163
164
164
switch ( arg ) {
165
165
case '--remote' :
166
+ case '-r' :
166
167
this . info (
167
168
'This command normally displays all of your remote tracking branches.'
168
169
) ;
169
170
args . length = 0 ;
170
171
break ;
172
+ case '--all' :
173
+ case '-a' :
174
+ this . info (
175
+ 'This command normally displays all of your tracking branches, both remote and local.'
176
+ ) ;
177
+ break ;
178
+ case '--delete' :
171
179
case '-d' :
172
180
var name = args . pop ( ) ;
173
181
this . historyView . deleteBranch ( name ) ;
174
182
break ;
175
183
default :
176
- var remainingArgs = [ arg ] . concat ( args ) ;
177
- args . length = 0 ;
178
- this . historyView . branch ( remainingArgs . join ( ' ' ) ) ;
184
+ if ( arg . charAt ( 0 ) == '-' ) {
185
+ this . error ( ) ;
186
+ } else {
187
+ var remainingArgs = [ arg ] . concat ( args ) ;
188
+ args . length = 0 ;
189
+ this . historyView . branch ( remainingArgs . join ( ' ' ) ) ;
190
+ }
179
191
}
180
192
}
181
193
} ,
You can’t perform that action at this time.
0 commit comments