mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add VCS::GIT#commit
This commit is contained in:
parent
2fb83a0af7
commit
2ae5f6f97c
1 changed files with 9 additions and 0 deletions
|
@ -484,6 +484,15 @@ class VCS
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
def commit(opts = {})
|
||||
dryrun = opts.fetch(:dryrun) {$DEBUG} if opts
|
||||
args = [COMMAND]
|
||||
args << "-n" if dryrun
|
||||
args << "push"
|
||||
system(*args) or return false
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
class GITSVN < GIT
|
||||
|
|
Loading…
Reference in a new issue