+
Skip to content

Added filtering #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载