class RakeCommit::GitSvn
Public Class Methods
new(prompt_exclusions = [], precommit = nil)
click to toggle source
# File lib/rake_commit/git_svn.rb, line 3 def initialize(prompt_exclusions = [], precommit = nil) @prompt_exclusions = prompt_exclusions @precommit = precommit end
Public Instance Methods
commit()
click to toggle source
# File lib/rake_commit/git_svn.rb, line 8 def commit RakeCommit::Shell.system(@precommit) unless @precommit.nil? git = RakeCommit::Git.new git.add git.status git_svn_commit_with_message rebase RakeCommit::Shell.system "rake" dcommit end
dcommit()
click to toggle source
# File lib/rake_commit/git_svn.rb, line 28 def dcommit RakeCommit::Shell.system "git svn dcommit" end
git_svn_commit_with_message()
click to toggle source
# File lib/rake_commit/git_svn.rb, line 19 def git_svn_commit_with_message message = RakeCommit::CommitMessage.new(@prompt_exclusions).joined_message_with_author RakeCommit::Shell.system "git commit -m #{message.inspect}" end
rebase()
click to toggle source
# File lib/rake_commit/git_svn.rb, line 24 def rebase RakeCommit::Shell.system "git svn rebase" end