Thanks to visit codestin.com
Credit goes to Github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/git-bc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (opts.indexOf('-h') > -1) {

// Exits program execution on ESC keypress
process.stdin.on('keypress', function (ch, key) {
if (key && (key.name === 'escape' || key.name === 'q')) {
if (key && (key.name === 'escape')) {
process.exit();
}
});
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = function gitBranchCheckout(exec, options) {

function promptList(branches) {
result.prompt = inquirer.prompt([{
type: 'list',
type: 'filter',
name: 'branches',
message: 'Select a branch to checkout:',
choices: branches.filter(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"checkout"
],
"dependencies": {
"inquirer": "^0.8.x",
"inquirer": "https://github.com/paoloantinori/Inquirer.js/tarball/f69a7de925576e9ea3c4bd49734bb6f771183676",
"simple-output": "^1.0.x"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions test.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[?25l[?25h