git-garbage 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/garbage.sh +2 -2
- package/package.json +49 -3
- package/CHANGELOG.md +0 -40
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<br>
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
|
-
>
|
|
9
|
+
> It deletes merged/squashed local git branches after deleting them on the remote repository.
|
|
10
10
|
|
|
11
11
|
## Install
|
|
12
12
|
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
npm install --global git-garbage
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
**NOTE:** Need the git version 2.7.1 or above.
|
|
18
|
-
|
|
19
17
|
## Usage
|
|
20
18
|
|
|
21
19
|
```sh
|
package/garbage.sh
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
if test -n "$(git status --porcelain)"; then
|
|
4
4
|
echo 'Unclean working tree. Commit or stash changes first.' >&2;
|
|
5
|
-
exit
|
|
5
|
+
exit 1;
|
|
6
6
|
fi
|
|
7
7
|
|
|
8
8
|
if ! git fetch --quiet 2> /dev/null; then
|
|
9
9
|
echo 'There was a problem fetching your branch.' >&2;
|
|
10
|
-
exit
|
|
10
|
+
exit 1;
|
|
11
11
|
fi
|
|
12
12
|
|
|
13
13
|
CURRENT_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
package/package.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"name": "git-garbage",
|
|
3
3
|
"description": "Delete local git branches after deleting them on the remote repository.",
|
|
4
4
|
"homepage": "https://github.com/Kikobeats/git-garbage",
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.3",
|
|
6
6
|
"bin": {
|
|
7
7
|
"git-garbage": "garbage.sh"
|
|
8
8
|
},
|
|
9
9
|
"author": {
|
|
10
|
-
"name": "Kiko Beats",
|
|
11
10
|
"email": "josefrancisco.verdu@gmail.com",
|
|
11
|
+
"name": "Kiko Beats",
|
|
12
12
|
"url": "https://github.com/Kikobeats"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
@@ -23,8 +23,54 @@
|
|
|
23
23
|
"garbage",
|
|
24
24
|
"git"
|
|
25
25
|
],
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@commitlint/cli": "latest",
|
|
28
|
+
"@commitlint/config-conventional": "latest",
|
|
29
|
+
"ci-publish": "latest",
|
|
30
|
+
"conventional-github-releaser": "latest",
|
|
31
|
+
"finepack": "latest",
|
|
32
|
+
"git-authors-cli": "latest",
|
|
33
|
+
"nano-staged": "latest",
|
|
34
|
+
"npm-check-updates": "latest",
|
|
35
|
+
"prettier-standard": "latest",
|
|
36
|
+
"simple-git-hooks": "latest",
|
|
37
|
+
"standard": "latest",
|
|
38
|
+
"standard-markdown": "latest",
|
|
39
|
+
"standard-version": "latest"
|
|
40
|
+
},
|
|
26
41
|
"files": [
|
|
27
42
|
"garbage.sh"
|
|
28
43
|
],
|
|
29
|
-
"
|
|
44
|
+
"scripts": {
|
|
45
|
+
"contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
|
|
46
|
+
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
|
|
47
|
+
"prerelease": "npm run update:check && npm run contributors",
|
|
48
|
+
"release": "standard-version -a",
|
|
49
|
+
"release:github": "conventional-github-releaser -p angular",
|
|
50
|
+
"release:tags": "git push --follow-tags origin HEAD:master",
|
|
51
|
+
"test": "exit 0",
|
|
52
|
+
"update": "ncu -u",
|
|
53
|
+
"update:check": "ncu -- --error-level 2"
|
|
54
|
+
},
|
|
55
|
+
"license": "MIT",
|
|
56
|
+
"commitlint": {
|
|
57
|
+
"extends": [
|
|
58
|
+
"@commitlint/config-conventional"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"nano-staged": {
|
|
62
|
+
"*.js": [
|
|
63
|
+
"prettier-standard"
|
|
64
|
+
],
|
|
65
|
+
"*.md": [
|
|
66
|
+
"standard-markdown"
|
|
67
|
+
],
|
|
68
|
+
"package.json": [
|
|
69
|
+
"finepack"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"simple-git-hooks": {
|
|
73
|
+
"commit-msg": "npx commitlint --edit",
|
|
74
|
+
"pre-commit": "npx nano-staged"
|
|
75
|
+
}
|
|
30
76
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<a name="1.1.1"></a>
|
|
2
|
-
## 1.1.1 (2016-04-18)
|
|
3
|
-
|
|
4
|
-
* Add related section ([69a5a7f](https://github.com/kikobeats/git-garbage/commit/69a5a7f))
|
|
5
|
-
* add screen ([8279092](https://github.com/kikobeats/git-garbage/commit/8279092))
|
|
6
|
-
* adjust shell ([0044f8a](https://github.com/kikobeats/git-garbage/commit/0044f8a))
|
|
7
|
-
* Adjust style ([ad4f10b](https://github.com/kikobeats/git-garbage/commit/ad4f10b))
|
|
8
|
-
* improve script ([f49dcca](https://github.com/kikobeats/git-garbage/commit/f49dcca))
|
|
9
|
-
* Release 1.1.0 ([7daeef4](https://github.com/kikobeats/git-garbage/commit/7daeef4))
|
|
10
|
-
* Update README.md ([0373633](https://github.com/kikobeats/git-garbage/commit/0373633))
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<a name="1.1.0"></a>
|
|
15
|
-
# 1.1.0 (2016-02-09)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* improve script ([d28e12c](https://github.com/kikobeats/git-garbage/commit/d28e12c))
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<a name="1.0.1"></a>
|
|
23
|
-
## 1.0.1 (2016-01-25)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
* force merged branch ([b6049ea](https://github.com/kikobeats/git-garbage/commit/b6049ea))
|
|
27
|
-
* Release 1.0.1 ([275b785](https://github.com/kikobeats/git-garbage/commit/275b785))
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<a name="1.0.0"></a>
|
|
32
|
-
# 1.0.0 (2016-01-24)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
* Adjust ([dc2db75](https://github.com/kikobeats/git-garbage/commit/dc2db75))
|
|
36
|
-
* first commit ([cb143b2](https://github.com/kikobeats/git-garbage/commit/cb143b2))
|
|
37
|
-
* Release 1.0.0 ([261a92e](https://github.com/kikobeats/git-garbage/commit/261a92e))
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|