git-utils 0.5.9 → 0.5.10

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: a4989aaf3c2043e0352d357cc280bb2f092948b7
4
- data.tar.gz: f64e3d0b193157f93789ea4bd9d9de03f192cbd7
3
+ metadata.gz: eff18db289b3fe453a87bceaa85c682d1096bbab
4
+ data.tar.gz: 357ed9a3e7fbdd58734719f5602ce6c98a3748ec
5
5
  SHA512:
6
- metadata.gz: 1acc87da702c992c97084d24b36010f81a75b76a664e49a70e596a1c6d4d3397d10cb771184d7633b646c422b8cd308defe50a3de13c06f4ab506742711473b7
7
- data.tar.gz: 6cb161be0803993673827b688b0d30c0a9ca2820a7eb9283a389524fc1b861509dca611741251a75fe4ec913413aa1135a80391f1c94ccabbaed0bdecdcd4a38
6
+ metadata.gz: a2283ccf2e672b1a5dd882f2b399e88f4035dc5c0c39b292330ccb8052cd96dd3fb12a96f948d76d2faa68824a064cc0908109bc8164ffa2949afe465938e163
7
+ data.tar.gz: 621e3ae4fc717eb6a00a8e0df7c4e47699771277ab7eeaa1c0d3ca8a3b44d880fb0529bb46a95da1442ee613c54130cfa21176a6c1a96be1d423927ca60cc072
@@ -12,8 +12,9 @@ class Switch < Command
12
12
  end
13
13
 
14
14
  # Returns the branch to switch to.
15
+ # When multiple branches match, switch to the first one.
15
16
  def other_branch
16
- @other_branch ||= `git branch | grep #{pattern}`.strip
17
+ @other_branch ||= `git branch | grep #{pattern}`.split.first
17
18
  end
18
19
 
19
20
  # Returns a command appropriate for executing at the command line
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Utils
3
- VERSION = "0.5.9"
3
+ VERSION = "0.5.10"
4
4
  end
5
5
  end
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.9
4
+ version: 0.5.10
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-11-20 00:00:00.000000000 Z
11
+ date: 2013-11-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Add some Git utilities
14
14
  email: