monos 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/lib/mono/git/base.rb +7 -6
- data/lib/mono/sportdb.rb +8 -0
- data/lib/mono/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: 70c115bc6f5762608c35c75b05991cafa719485f
|
4
|
+
data.tar.gz: f6c91d659878aacc2f5902b0525acbbd27a52106
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7c3067d9f56f3b4888017540746ae118dae15cf3c9a46a86d47f5489ac07246105feccf608203c23628f5c15c3a11ff71fca8816f13226aa9e31f21ca6b0d97
|
7
|
+
data.tar.gz: 2e19f6360434425c493ff6bbfbf72fef6b22e7e4d96ec7d99a5a28d7aa89c2599fb009bc8686ee725375b04bbce0ca11d4d9a5b6fed54838e73784feb4e9f479
|
data/lib/mono/git/base.rb
CHANGED
@@ -107,14 +107,15 @@ class Git ## make Git a module - why? why not?
|
|
107
107
|
# --full-tree makes the command run as if you were in the repo's root directory.
|
108
108
|
# -r recurses into subdirectories. Combined with --full-tree, this gives you all committed, tracked files.
|
109
109
|
# --name-only removes SHA / permission info for when you just want the file paths.
|
110
|
-
# HEAD specifies which branch you want the list of tracked, committed files for.
|
110
|
+
# HEAD specifies which branch you want the list of tracked, committed files for.
|
111
111
|
# You could change this to master or any other branch name, but HEAD is the commit you have checked out right now.
|
112
112
|
#
|
113
113
|
# see https://stackoverflow.com/questions/15606955/how-can-i-make-git-show-a-list-of-the-files-that-are-being-tracked
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
114
|
+
#
|
115
|
+
# was:
|
116
|
+
|
117
|
+
def self.files ## was: e.g. git ls-files . or git ls-files *.rb or such
|
118
|
+
cmd = 'git ls-tree --full-tree --name-only -r HEAD' # was: 'git ls-files'
|
118
119
|
Shell.run( cmd )
|
119
120
|
end
|
120
121
|
## add list_files or ls_files alias - why? why not?
|
@@ -199,7 +200,7 @@ class GitProject
|
|
199
200
|
def add_all() Git.add_all; end
|
200
201
|
def commit( message: ) Git.commit( message: message ); end
|
201
202
|
|
202
|
-
def files(
|
203
|
+
def files() Git.files; end
|
203
204
|
|
204
205
|
end # class GitProject
|
205
206
|
|
data/lib/mono/sportdb.rb
CHANGED
data/lib/mono/version.rb
CHANGED