branchtree 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/branchtree/branch.rb +1 -1
- data/lib/branchtree/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7de167449704a2d6655450fbe8a136b3d7680b5ce97e7d186336a1a52d739276
|
4
|
+
data.tar.gz: ad2f1a87c2c336f6bbf86e724f229ba4ef351a77dbc8cebd1e7315e86a6ad529
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b1bd5179c28e0d6ea3d068317a46d488ce628e97e665f0b4eb177a494598dec0f1f4205ab0f6ca68bb06f447129fec18313e0f3692eca2a2d5e6f7b8abe103b
|
7
|
+
data.tar.gz: 22306579e2936ae5293c2add7de4a2db9d6f46115ab3a69040aff9a21af4a89fec015e1a8fd9eb5e8c010ef924d4c0619dcfb3102368ec011e7f42c88c516632
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
branchtree (0.1.
|
4
|
+
branchtree (0.1.2)
|
5
5
|
tty-command (~> 0.10.0)
|
6
6
|
tty-logger (~> 0.6.0)
|
7
7
|
tty-option (~> 0.1.0)
|
@@ -34,7 +34,7 @@ GEM
|
|
34
34
|
tty-logger (0.6.0)
|
35
35
|
pastel (~> 0.8)
|
36
36
|
tty-option (0.1.0)
|
37
|
-
tty-prompt (0.23.
|
37
|
+
tty-prompt (0.23.1)
|
38
38
|
pastel (~> 0.8)
|
39
39
|
tty-reader (~> 0.8)
|
40
40
|
tty-reader (0.9.0)
|
data/lib/branchtree/branch.rb
CHANGED
@@ -105,7 +105,7 @@ module Branchtree
|
|
105
105
|
end
|
106
106
|
|
107
107
|
parent_behind, parent_ahead = 0, 0
|
108
|
-
if @branch.parent.info.valid?
|
108
|
+
if @branch.parent && @branch.parent.info.valid?
|
109
109
|
# Count ahead-behind from parent
|
110
110
|
ahead_behind_parent = @branch.cmd.run(
|
111
111
|
"git", "rev-list", "--left-right", "--count", "refs/heads/#{@branch.parent_branch_name}...#{@branch.full_ref}",
|
data/lib/branchtree/version.rb
CHANGED