dev 2.0.112 → 2.0.113
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands/add.rb +8 -2
- 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: ccb9bc0b85aafd06be87e4fdf48d54d5e3f4cf64
|
4
|
+
data.tar.gz: db9cbab50daaafa07f33f0f8fa2fae5be14f301e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea4fe8edcd156d64af38a7eda16a63d95f187bc561a80bf91856f131dc7f671ae1a7dcfe03b3b9c8702c9f13234a08f6cda68d099264ddc12b8e1cfb127710aa
|
7
|
+
data.tar.gz: a0afd78c4b073f327a3194619e89ad71f958c198d4972b22801853dff7d8fcb081931f5fb66febef7b999bee3b8343cd7cf6928064c1c5960b61592d13d319b4
|
data/lib/commands/add.rb
CHANGED
@@ -20,8 +20,14 @@ class Add < Array
|
|
20
20
|
end
|
21
21
|
if(File.exists?('.git'))
|
22
22
|
SOURCE.each{|f|
|
23
|
-
status=`git status #{f}`
|
24
|
-
|
23
|
+
status=`git status #{f} --short`
|
24
|
+
#if status.include?('untracked') || status.include?('modified:')
|
25
|
+
if status.include?('??') || status.include?(' M ')
|
26
|
+
puts "git add #{f} -v"
|
27
|
+
add "git add #{f} -v"
|
28
|
+
else
|
29
|
+
puts status
|
30
|
+
end
|
25
31
|
}
|
26
32
|
end
|
27
33
|
end
|