lib/git/multi/config.rb in git-multi-6.0.0 vs lib/git/multi/config.rb in git-multi-7.0.0

- old
+ new

@@ -5,12 +5,12 @@ def local_option(path, name, default = nil) value = `git -C #{path} config --local --get #{name}`.chomp.freeze value.empty? && default ? default : value end - def full_names_for(superproject) - list = `git config --get-all superproject.#{superproject}.repo` + def global_options(name) + list = `git config --global --get-all #{name}` list.split($RS).map(&:strip).map(&:freeze) end def global_option(name, default = nil) value = `git config --global --get #{name}`.chomp.freeze @@ -20,10 +20,9 @@ def global_list(name, default = nil) global_option(name, default).split(',').map(&:strip).map(&:freeze) end def env_var(name, default = nil) - value = ENV[name] - (value.nil? || value.empty?) && default ? default : value + ENV.fetch(name, default) end end end