git-utils 0.5.2 → 0.5.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70316d6736c5c266e72b748ea62c05e75b5fa76d
4
- data.tar.gz: 5bf21c6d4c488669f5659c742105d57157927655
3
+ metadata.gz: 8cfcfbedfb2c8601aa1c055bb90e65565733b827
4
+ data.tar.gz: 8cd464425a4c964ed8d8cb5383123dc29b1c68d9
5
5
  SHA512:
6
- metadata.gz: dc82de35685ccfad57724c02fb73d7d7974f0df8c5814a0fa956909bd45e70bba03e4a361d245b433f8aa55d766fb05485c00aeed50994739e51ed61a92ca6ce
7
- data.tar.gz: 585aa45b39ff675c4e80c52ecb8e0865eea5eef3fb33067088ae081b343f260b7a96d710aa6d9a8e9e048438dfdc78fff960d72c282d2e3627ebe514f1b76f77
6
+ metadata.gz: d5e427cbd606a4e82dffd88b12044b06edfa58d4bcb6605794e3eeb7b06f06b33a7f997273c8309f338acbd6de3cea8cd4ffc3df6940ed1c2752fefc66bdccb7
7
+ data.tar.gz: 4eec133bbc7e61b048991e173a1a9ccdeb2818cf6971bbfd676d0d34a5985a1535cd8bbeff8058d7ca0a45df2b2b17efe1484acfccba6f5500e5670caf3f87a2
data/README.md CHANGED
@@ -16,7 +16,7 @@ The `git-utils` used to be pure Bash scripts, but they are now available as a Ru
16
16
  * `git merge-branch [branch]`: merges current branch into given branch (defaults to `master`)
17
17
  * `git open`: opens the remote page for the repo (OS X only)
18
18
  * `git polish`: makes a commit with the message "Polish"
19
- * `git pull-request`: opens the remote page for issuing a new a pull request (OS X only)
19
+ * `git pull-request`: pushes the branch and opens the remote page for issuing a new a pull request (OS X only)
20
20
  * `git push-branch`: pushes the current branch up to origin
21
21
  * `git delete-remote-branch <branch>`: deletes the remote branch if it is safe to do so
22
22
  * `git switch <pattern>`: switches to the first branch matching the given pattern
@@ -39,7 +39,8 @@ class PullRequest < Command
39
39
 
40
40
  # Returns a command appropriate for executing at the command line
41
41
  def cmd
42
- c = ["open #{new_pr_url}"]
42
+ c = ["git push-branch"]
43
+ c << ["open #{new_pr_url}"]
43
44
  c << argument_string(unknown_options) unless unknown_options.empty?
44
45
  c.join("\n")
45
46
  end
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Utils
3
- VERSION = "0.5.2"
3
+ VERSION = "0.5.3"
4
4
  end
5
5
  end
@@ -33,6 +33,7 @@ https://mwatson@stash.atlassian.com:7990/stash/scm/stash/stash.git https://stash
33
33
 
34
34
  describe "command-line command" do
35
35
  subject { `bin/git-pull-request --debug` }
36
+ it { should match /git push-branch/ }
36
37
  it { should match /open/ }
37
38
  end
38
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl