Skip to content

Adds file option to config_set to allow adding to specific git-config files #458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 19, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into master
  • Loading branch information
codenamev authored Jun 11, 2021
commit 778dc52f0c567c5691541bfc7ef4b6623277a01c
4 changes: 2 additions & 2 deletions lib/git/lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -585,9 +585,9 @@ def show(objectish=nil, path=nil)

def config_set(name, value, options = {})
if options[:file].to_s.empty?
command('config', [name, value])
command('config', name, value)
else
command('config', ['--file', options[:file], name, value])
command('config', '--file', options[:file], name, value)
end
end

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.