git-branch-description
Advanced tools
+4
-0
@@ -39,4 +39,8 @@ #!/usr/bin/env node | ||
| .option('-c --clean', 'hide branches without description') | ||
| .option('-f --fetch', 'fetch origin before collection branch description') | ||
| .action(function(branch, cmd) { | ||
| checkGitDir(); | ||
| if (cmd.fetch) { | ||
| git.fetch(); | ||
| } | ||
| let mode = cmd.all ? 'all' : cmd.remote ? 'remote' : 'local'; | ||
@@ -43,0 +47,0 @@ let clean = cmd.clean; |
+1
-1
| { | ||
| "name": "git-branch-description", | ||
| "version": "1.2.6", | ||
| "version": "1.2.7", | ||
| "description": "manage branch description via branch-description.properties", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+7
-14
@@ -8,2 +8,8 @@ var exec = require('child_process').execSync; | ||
| exports.fetch = function() { | ||
| exec('git fetch -q -n origin', { | ||
| stdio: 'pipe' | ||
| }); | ||
| } | ||
| exports.localBranches = function() { | ||
@@ -22,3 +28,3 @@ var branches = exec(`git for-each-ref --format='%(refname:short)' refs/heads/`, { | ||
| exports.remoteBranches = function(replaceRemoteName) { | ||
| var branches = exec(`git fetch -q -n origin && git for-each-ref --format='%(refname:short)' refs/remotes/`).toString().trim(); | ||
| var branches = exec(`git for-each-ref --format='%(refname:short)' refs/remotes/`).toString().trim(); | ||
| branches = trimSingleQuote(branches); | ||
@@ -80,17 +86,4 @@ | ||
| } | ||
| if (!desc) { | ||
| try { | ||
| const diff = exec(`git fetch -q origin ${name} && git diff origin/${name} -- branch-description.properties`, { | ||
| cwd: parser.getRootDir(), | ||
| stdio: 'pipe' | ||
| }).toString(); | ||
| const matches = diff.match(new RegExp(`-${name}\\s*=\\s*(.+)`)); | ||
| if (matches) { | ||
| desc = matches[1].trim(); | ||
| } | ||
| } catch (e) { | ||
| } | ||
| } | ||
| return desc; | ||
| } |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
13781
-1.7%352
-1.12%