Method: GitReviewNotes::CLI#review

Defined in:
lib/git_review_notes/cli.rb

#reviewObject



7
8
9
10
11
12
13
14
15
# File 'lib/git_review_notes/cli.rb', line 7

def review
  raise "Current branch is master. Exiting..." if git.current_branch == 'master'

  current_branch_commits = git.log.between("master", git.current_branch)
  add_reviewed_by(current_branch_commits)

  system "git log master..#{git.current_branch}"
  ask_for_pushing_review(current_branch_commits)
end