scvcs 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/commands/status.rb +2 -2
- data/lib/scv/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb0d8820eb956906b6b4f4b6acc3d6d4302fcb5b
|
4
|
+
data.tar.gz: 4570ef354f4ac973a48f6c434b8e3e94e6123efd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db8c0372bd7673f394bf5478e6ab4a5e8f7ad00b84457e6479ef37582ac74486a815f04b0ce152a1172ad198c146725c55ee7f01a9ab2cd0c638ff47fa1c107f
|
7
|
+
data.tar.gz: 7914b17898fec122d9f1d8fec27dbfd2f85234e2fe3cbaee73f112fb1027ba7e1e7cad990fef7f336a5dd63c4f1753c241e604610232be0030144b61cd85733b
|
data/bin/commands/status.rb
CHANGED
@@ -3,7 +3,7 @@ arg_name ''
|
|
3
3
|
command :status do |c|
|
4
4
|
c.action do |global_options, options, args|
|
5
5
|
repository = global_options[:repository]
|
6
|
-
commit = repository
|
6
|
+
commit = repository.branch_head
|
7
7
|
status = repository.status commit,
|
8
8
|
ignore: [/^\.|\/\./]
|
9
9
|
|
@@ -11,7 +11,7 @@ command :status do |c|
|
|
11
11
|
puts "# No commits"
|
12
12
|
else
|
13
13
|
puts "# On branch #{repository.head}"
|
14
|
-
puts "# On commit #{commit.id.yellow}"
|
14
|
+
puts "# On commit #{commit.id.yellow}" if commit
|
15
15
|
end
|
16
16
|
|
17
17
|
if repository.config['merge'] and repository.config['merge']['parents']
|
data/lib/scv/version.rb
CHANGED