Esempio n. 1
0
def review_branch():
    """Diff against an arbitrary revision, branch, tag, etc."""
    branch = choose_ref(N_('Select Branch to Review'), N_('Review'))
    if not branch:
        return
    merge_base = gitcmds.merge_base_parent(branch)
    difftool.diff_commits(qtutils.active_window(), merge_base, branch)
Esempio n. 2
0
 def __init__(self, branch):
     Command.__init__(self)
     self.new_mode = self.model.mode_review
     self.new_head = gitcmds.merge_base_parent(branch)
     self.new_diff_text = ''