def steal(opts)
base_ref=@stable_base
if opts[:all] != true then
sha = @repo.runGit("rev-parse 'git-maintain/steal/last/#{@stable_base}' 2>&1")
if $? == 0 then
base_ref=sha
log(:VERBOSE, "Starting from last successfull run:")
log(:VERBOSE, @repo.getCommitHeadline(base_ref))
end
end
master_sha=@repo.runGit("rev-parse origin/master")
res = steal_all(opts, "#{base_ref}..#{master_sha}")
if res == true then
@repo.runGit("tag -f 'git-maintain/steal/last/#{@stable_base}' origin/master")
log(:VERBOSE, "Marking new last successfull run at:")
log(:VERBOSE, @repo.getCommitHeadline(master_sha))
end
end