git-branch-delete-orphans 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +13 -0
- data/bin/git-branch-delete-orphans +4 -1
- data/git-branch-delete-orphans.gemspec +1 -0
- data/lib/git-branch-delete-orphans/version.rb +1 -1
- metadata +14 -3
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## Version 0.0.5
|
4
|
+
|
5
|
+
* Highlight branch. PR [#5][] by [@pvdb][]
|
6
|
+
|
7
|
+
## Version 0.0.4
|
8
|
+
|
9
|
+
* Better prompt for user actions. PR [#3][] by [@pvdb][]
|
10
|
+
* Handle signals: TERM and INT. PR [#4][] by [@pvdb][]
|
11
|
+
|
3
12
|
## Version 0.0.3
|
4
13
|
|
5
14
|
* Ruby 1.9 compatibility PR [#2][] by [@waynemoore][]
|
@@ -15,5 +24,9 @@
|
|
15
24
|
* Initial version by [@pcreux][]
|
16
25
|
<!--- The following link definition list is generated by PimpMyChangelog --->
|
17
26
|
[#2]: https://github.com/pcreux/git/issues/2
|
27
|
+
[#3]: https://github.com/pcreux/git/issues/3
|
28
|
+
[#4]: https://github.com/pcreux/git/issues/4
|
29
|
+
[#5]: https://github.com/pcreux/git/issues/5
|
18
30
|
[@pcreux]: https://github.com/pcreux
|
31
|
+
[@pvdb]: https://github.com/pvdb
|
19
32
|
[@waynemoore]: https://github.com/waynemoore
|
@@ -1,5 +1,8 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
+
require 'rubygems'
|
4
|
+
require 'rainbow'
|
5
|
+
|
3
6
|
['TERM', 'INT'].each do |signal|
|
4
7
|
Signal.trap(signal) do
|
5
8
|
# most likely, users will CTRL-C when being prompted
|
@@ -37,7 +40,7 @@ def cli(orphans)
|
|
37
40
|
keep = false
|
38
41
|
until delete || delete_all || keep || keep_all
|
39
42
|
puts ""
|
40
|
-
puts "#{b} tracks a remote branch which does not exist anymore."
|
43
|
+
puts "Branch #{b.bright} tracks a remote branch which does not exist anymore."
|
41
44
|
print "Do you want to [d]elete it, [D]elete all, [k]eep it or [K]eep all? "
|
42
45
|
case STDIN.gets.chomp
|
43
46
|
when 'd' then delete = true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-branch-delete-orphans
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,8 +9,19 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
13
|
-
dependencies:
|
12
|
+
date: 2012-07-17 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rainbow
|
16
|
+
requirement: &70159208269120 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70159208269120
|
14
25
|
description: ! '`git branch-delete-orphans` lists orphan tracking branches and prompts
|
15
26
|
you to delete or keep them.'
|
16
27
|
email:
|