1
0
Fork 0
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:
Nobuyoshi Nakada 2019-04-23 15:43:51 +09:00
parent 2fb83a0af7
commit 2ae5f6f97c
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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