lgit 0.1.0 → 0.2.0
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.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/exe/lgit +2 -0
- data/lib/lgit/version.rb +1 -1
- data/lib/lgit.rb +10 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87a18491d6a6a51e4d82dba60b791d7f2892413ab5a8734864c734ca49ca7948
|
4
|
+
data.tar.gz: a7a378630fc10a48d018728b41c30606c2a8772e1c869ac8cae4fd25ceb130db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29e4e893f011d49b1e161f3c92708d108b4b28af5c01a500dc779cb501ada5c584342579829a8af4f56de115b990b91cdbee2e32595257d9f900114d4bf2aff1
|
7
|
+
data.tar.gz: fabe285060ccc1d970ddfaca981d8d1330cd21158943fbe550bcb8d2eebf69752499738361b7919213780490592308e78b9488269a394a82c71a24b82dbe378e
|
data/README.md
CHANGED
@@ -34,6 +34,12 @@ Create new branch from freshly pulled master
|
|
34
34
|
lgit branch <name>
|
35
35
|
```
|
36
36
|
|
37
|
+
Delete all branches for which remotes are gone. *Use with caution!*
|
38
|
+
|
39
|
+
```shell
|
40
|
+
lgit delete-branches
|
41
|
+
```
|
42
|
+
|
37
43
|
## Development
|
38
44
|
|
39
45
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/exe/lgit
CHANGED
data/lib/lgit/version.rb
CHANGED
data/lib/lgit.rb
CHANGED
@@ -25,7 +25,16 @@ module Lgit
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def delete_branches
|
28
|
-
|
28
|
+
`git fetch -p`
|
29
|
+
`git branch -vv`
|
30
|
+
.split("\n")
|
31
|
+
.reject { |branch| branch.start_with?('*') }
|
32
|
+
.select { |branch| branch.include?(': gone]') }
|
33
|
+
.map! { |branch| branch.match(/^\s+(.*?)\s/)[1] }
|
34
|
+
.each do branch
|
35
|
+
`git branch -D #{branch}`
|
36
|
+
puts "#{branch} deleted"
|
37
|
+
end
|
29
38
|
end
|
30
39
|
end
|
31
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lgit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Luladjiev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.7.
|
98
|
+
rubygems_version: 2.7.3
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: Git on steroids
|