We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7762dd4 + 246fc16 commit 4ed70f2Copy full SHA for 4ed70f2
1 file changed
js/controlbox.js
@@ -294,17 +294,20 @@ define(['d3'], function () {
294
295
merge: function (args) {
296
var noFF = false;
297
+ var branch = args[0];
298
if (args.length === 2)
299
{
- var mergeSwitch = args.pop();
300
- if (mergeSwitch === '--no-ff') {
+ if (args[0] === '--no-ff') {
301
noFF = true;
302
+ branch = args[1];
303
+ } else if (args[1] === '--no-ff') {
304
+ noFF = true;
305
+ branch = args[0];
306
} else {
307
this.info('This demo only supports the --no-ff switch..');
308
}
309
- var ref = args.shift(),
- result = this.historyView.merge(ref, noFF);
310
+ var result = this.historyView.merge(branch, noFF);
311
312
if (result === 'Fast-Forward') {
313
this.info('You have performed a fast-forward merge.');
0 commit comments