🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@vtian/git-branch-clear

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtian/git-branch-clear - npm Package Compare versions

Comparing version
0.0.6
to
0.0.7
+11
-6
lib/git-branch-clear.js

@@ -119,8 +119,13 @@ 'use strict'

async when(answers) {
log()
await gitShowAllBranchList(true)
log()
log(chalk.yellow(`Info: 没有发现需要删除的分支`))
log()
return allBranchList.filter((item) => !item.disabled).length > 0
let hasDeleteBranch =
allBranchList.filter((item) => !item.disabled).length > 0
if (!hasDeleteBranch) {
log()
await gitShowAllBranchList(true)
log()
log(chalk.yellow(`Info: 没有发现需要删除的分支`))
log()
}
return hasDeleteBranch
}

@@ -127,0 +132,0 @@ }

@@ -34,3 +34,3 @@ {

},
"version": "0.0.6"
"version": "0.0.7"
}

@@ -5,2 +5,8 @@ # `@vtian/git-branch-clear`

## Install
```bash
npm i -g @vtian/git-branch-clear
```
## Tips

@@ -20,3 +26,2 @@

```bash
npm i -g @vtian/git-branch-clear

@@ -23,0 +28,0 @@ gitb l # 查看所有分支列表