示例#1
0
                        return Git.branchDelete(branchName).catch(function (err) {

                            return Utils.showOutput(err, "Branch deletion failed", {
                                question: "Do you wish to force branch deletion?"
                            }).then(function (response) {
                                if (response === true) {
                                    return Git.forceBranchDelete(branchName).then(function (output) {
                                        return Utils.showOutput(output);
                                    }).catch(function (err) {
                                        ErrorHandler.showError(err, "Forced branch deletion failed");
                                    });
                                }
                            });

                        });
示例#2
0
 return Git.forceBranchDelete(branchName).then(function (output) {
     return Utils.showOutput(output);
 }).catch(function (err) {
示例#3
0
 Git.pull(remoteName).then(function (result) {
     Utils.showOutput(result, Strings.GIT_PULL_RESPONSE);
 }).catch(function (err) {
示例#4
0
 }).then(function (stdout) {
     Utils.showOutput(stdout, Strings.MERGE_RESULT).finally(function () {
         EventEmitter.emit(Events.REFRESH_ALL);
     });
 });
示例#5
0
 return ProgressDialog.waitForClose().then(function () {
     Utils.showOutput(result, Strings.GIT_PULL_RESPONSE);
 });