Allow additional arguments to run_formatter
This commit is contained in:
parent
159c0ac25b
commit
9a18902495
1 changed files with 2 additions and 2 deletions
|
@ -73,9 +73,9 @@ module Git
|
|||
Dir.chdir path, &block
|
||||
end
|
||||
|
||||
def run_formatter
|
||||
def run_formatter(**arguments)
|
||||
in_repo do
|
||||
FormatStaged.run formatter: "#{__dir__}/test_hook.rb {}", patterns: ['*.test']
|
||||
FormatStaged.run(**arguments, formatter: "#{__dir__}/test_hook.rb {}", patterns: ['*.test'])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue