summaryrefslogtreecommitdiff
path: root/tool/vcs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r--tool/vcs.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index fe81df871b..d4fea1e210 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -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