git-utils 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/git-utils/open.rb +9 -1
- data/lib/git-utils/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afcfa0e6ef3e6fd41d9ab5485ea6ab5b06c24dd0
|
4
|
+
data.tar.gz: b909ff1cc51a48dd2c1365a2322ca0a76ca2897c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80a28df650412c734c26e7f396584ed68c6b3699efb5e6852bc6d55cd6c3c1fd3ae88fd2c0536783b720109d4306e0f210070260cd9984ec840140f276db32ae
|
7
|
+
data.tar.gz: d2b1dca73f3393db8fbae563798d117856d5cea48ec8cb5d5cdb188d7297a5d1b19df1306bc43f2ac5b276a21c9fd19032810ddb907487ba632803f164ec1054
|
data/README.md
CHANGED
@@ -13,7 +13,7 @@ The `git-utils` used to be pure Bash scripts, but they are now available as a Ru
|
|
13
13
|
* `git amend`: alias for `git commit --amend`
|
14
14
|
* `git anal` (*use with caution*): makes a commit with the message "Make anal changes"
|
15
15
|
* `git bump`: makes a commit with the message "Bump version number"
|
16
|
-
* `git cleanup`: deletes every branch already merged into current branch (apart from `master`, `staging`, `development`, and any branches listed in `~/.git-cleanup-preserved`)
|
16
|
+
* `git cleanup`: deletes every branch already merged into current branch (apart from `master`, `staging`, `development`, and any branches listed in `~/.git-cleanup-preserved`). Pass the `-r` option to delete remote merged branches.
|
17
17
|
* `git merge-branch [branch]`: merges current branch into given branch (defaults to `master`)
|
18
18
|
* `git open`: opens the remote page for the repo (OS X & Linux)
|
19
19
|
* `git polish`: makes a commit with the message "Polish"
|
data/lib/git-utils/open.rb
CHANGED
@@ -5,6 +5,9 @@ class Open < Command
|
|
5
5
|
def parser
|
6
6
|
OptionParser.new do |opts|
|
7
7
|
opts.banner = "Usage: git open"
|
8
|
+
opts.on("-p", "--print", "print URL instead of opening") do |opt|
|
9
|
+
self.options.print = opt
|
10
|
+
end
|
8
11
|
opts.on_tail("-h", "--help", "this usage guide") do
|
9
12
|
puts opts.to_s; exit 0
|
10
13
|
end
|
@@ -33,7 +36,12 @@ class Open < Command
|
|
33
36
|
|
34
37
|
# Returns a command appropriate for executing at the command line.
|
35
38
|
def cmd
|
36
|
-
|
39
|
+
if options[:print]
|
40
|
+
puts page_url
|
41
|
+
""
|
42
|
+
else
|
43
|
+
"#{open} #{page_url}"
|
44
|
+
end
|
37
45
|
end
|
38
46
|
|
39
47
|
private
|
data/lib/git-utils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Hartl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06
|
11
|
+
date: 2014-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Add some Git utilities
|
14
14
|
email:
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.0
|
97
|
+
rubygems_version: 2.3.0
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: See the README for full documentation
|