git_cli 0.13.7 → 0.13.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/git_cli/delta.rb +3 -0
- data/lib/git_cli/version.rb +1 -1
- data/lib/git_cli.rb +20 -13
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8983b489b61f601a856d5270ec54f6c3c86565a07d09dab27ce5e96fc7af844
|
4
|
+
data.tar.gz: 2c4531b69c722f6d4769f1f5697eeb69a7264a22baf5c25f72213bfabd08c8b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1ec3e699e6661927b86a2cd0783fca08a6a6f563e754c6542194e2ce199a3f144445216637869489cea9efc060ff7ff166aae0689b942c561efdf0c1fb29fb5
|
7
|
+
data.tar.gz: cc24fb4f1a2d237e42f3f595e886516306f476e1c304b7de42a205403be4cedb6708a03a55e49e052737050016f1cebc69ea6c234740cd0e3b5cb43076e176c1
|
data/Gemfile.lock
CHANGED
data/lib/git_cli/delta.rb
CHANGED
data/lib/git_cli/version.rb
CHANGED
data/lib/git_cli.rb
CHANGED
@@ -237,23 +237,18 @@ module GitCli
|
|
237
237
|
alias_method :root_path, :workspace_root
|
238
238
|
#end
|
239
239
|
|
240
|
-
def load_remote_to_repos
|
241
|
-
conf = remote_config
|
242
|
-
conf.each do |k,v|
|
243
|
-
repo = GitCli::Repository.new(k, v.values.first)
|
244
|
-
repo.support_fetch if v.keys.include?("fetch")
|
245
|
-
repo.support_push if v.keys.include?("push")
|
246
|
-
add_repos(repo)
|
247
|
-
end
|
248
|
-
end
|
249
|
-
|
250
240
|
def repos
|
251
|
-
|
252
|
-
|
253
|
-
|
241
|
+
@repos.clear
|
242
|
+
#if @repos.nil? or @repos.empty?
|
243
|
+
load_remote_to_repos
|
244
|
+
#end
|
254
245
|
@repos
|
255
246
|
end
|
256
247
|
|
248
|
+
def has_remote_repos?
|
249
|
+
not_empty?(repos)
|
250
|
+
end
|
251
|
+
|
257
252
|
def is_clean?
|
258
253
|
nd, nf = new_files
|
259
254
|
md, mf = modified_files
|
@@ -288,6 +283,18 @@ module GitCli
|
|
288
283
|
res
|
289
284
|
end
|
290
285
|
|
286
|
+
|
287
|
+
private
|
288
|
+
def load_remote_to_repos
|
289
|
+
conf = remote_config
|
290
|
+
conf.each do |k,v|
|
291
|
+
repo = GitCli::Repository.new(k, v.values.first)
|
292
|
+
repo.support_fetch if v.keys.include?("fetch")
|
293
|
+
repo.support_push if v.keys.include?("push")
|
294
|
+
add_repos(repo)
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
291
298
|
end # Gvcs::Workspace
|
292
299
|
|
293
300
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Liaw
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: teLogger
|
@@ -125,7 +125,7 @@ homepage: https://github.com/chrisliaw/git_cli
|
|
125
125
|
licenses:
|
126
126
|
- GPL-3.0
|
127
127
|
metadata: {}
|
128
|
-
post_install_message:
|
128
|
+
post_install_message:
|
129
129
|
rdoc_options: []
|
130
130
|
require_paths:
|
131
131
|
- lib
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
143
|
rubygems_version: 3.4.6
|
144
|
-
signing_key:
|
144
|
+
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: GIT command line interface
|
147
147
|
test_files: []
|