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 +4 -4
- data/lib/git-utils/switch.rb +2 -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: eff18db289b3fe453a87bceaa85c682d1096bbab
|
|
4
|
+
data.tar.gz: 357ed9a3e7fbdd58734719f5602ce6c98a3748ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2283ccf2e672b1a5dd882f2b399e88f4035dc5c0c39b292330ccb8052cd96dd3fb12a96f948d76d2faa68824a064cc0908109bc8164ffa2949afe465938e163
|
|
7
|
+
data.tar.gz: 621e3ae4fc717eb6a00a8e0df7c4e47699771277ab7eeaa1c0d3ca8a3b44d880fb0529bb46a95da1442ee613c54130cfa21176a6c1a96be1d423927ca60cc072
|
data/lib/git-utils/switch.rb
CHANGED
|
@@ -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}`.
|
|
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
|
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.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-
|
|
11
|
+
date: 2013-11-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Add some Git utilities
|
|
14
14
|
email:
|