git-utils 0.5.4 → 0.5.5
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/lib/git-utils/delete_remote_branch.rb +2 -2
- data/lib/git-utils/open.rb +1 -3
- data/lib/git-utils/pull_request.rb +5 -4
- data/lib/git-utils/push_branch.rb +3 -3
- data/lib/git-utils/switch.rb +1 -4
- data/lib/git-utils/sync.rb +0 -1
- data/lib/git-utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79d7991110b57551348943b445ab9a8a2bf5c531
|
4
|
+
data.tar.gz: 8c621175bd31d777d93f9b2af0aaea9be4b95e6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a82a630945e9b15d5585c709dbcd5b0ee84e515dd2e584af0a853fddc5eb7038740b3864fa9e7c93a7bb00736330d7631257a0b4c361578beb686cb161c9ce10
|
7
|
+
data.tar.gz: aacd5270d7c75a0615080dcb4a9526cf3bc2fe1a07caee559fb9783b0f5ef13c2e9c59efc761301e11e0b74830aa37f06417af81e9bb918e74872ab92db7c9a7
|
@@ -22,9 +22,9 @@ class DeleteRemoteBranch < Command
|
|
22
22
|
# Returns a command appropriate for executing at the command line
|
23
23
|
def cmd
|
24
24
|
if delete_safely? || options.override
|
25
|
-
c
|
25
|
+
c = ["git push origin :#{target_branch}"]
|
26
26
|
c << argument_string(unknown_options) unless unknown_options.empty?
|
27
|
-
c.join("
|
27
|
+
c.join(" ")
|
28
28
|
else
|
29
29
|
$stderr.puts "Target branch contains unmerged commits."
|
30
30
|
$stderr.puts "Please cherry-pick the commits or merge the branch again."
|
data/lib/git-utils/open.rb
CHANGED
@@ -39,9 +39,10 @@ class PullRequest < Command
|
|
39
39
|
|
40
40
|
# Returns a command appropriate for executing at the command line
|
41
41
|
def cmd
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
c
|
42
|
+
push = ["git push-branch"]
|
43
|
+
push += argument_string(unknown_options) unless unknown_options.empty?
|
44
|
+
push = push.join(" ")
|
45
|
+
c = [push, "open #{new_pr_url}"]
|
46
|
+
c.join(" ")
|
46
47
|
end
|
47
48
|
end
|
@@ -13,8 +13,8 @@ class PushBranch < Command
|
|
13
13
|
|
14
14
|
# Returns a command appropriate for executing at the command line
|
15
15
|
def cmd
|
16
|
-
c
|
17
|
-
c
|
18
|
-
c.join("
|
16
|
+
c = ["git push origin #{current_branch}"]
|
17
|
+
c += argument_string(unknown_options) unless unknown_options.empty?
|
18
|
+
c.join(" ")
|
19
19
|
end
|
20
20
|
end
|
data/lib/git-utils/switch.rb
CHANGED
@@ -18,9 +18,7 @@ class Switch < Command
|
|
18
18
|
|
19
19
|
# Returns a command appropriate for executing at the command line
|
20
20
|
def cmd
|
21
|
-
|
22
|
-
c << argument_string(unknown_options) unless unknown_options.empty?
|
23
|
-
c.join("\n")
|
21
|
+
"git checkout #{other_branch}"
|
24
22
|
end
|
25
23
|
|
26
24
|
private
|
@@ -29,5 +27,4 @@ class Switch < Command
|
|
29
27
|
def pattern
|
30
28
|
self.known_options.first
|
31
29
|
end
|
32
|
-
|
33
30
|
end
|
data/lib/git-utils/sync.rb
CHANGED
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.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Hartl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Add some Git utilities
|
14
14
|
email:
|