def choose_commit(self): revs, summaries = gitcmds.log_helper() sha1s = select_commits("Select Commit Message", revs, summaries, multiselect=False) if not sha1s: return sha1 = sha1s[0] cmds.do(cmds.LoadPreviousMessage, sha1)
def export_patches(): """Run 'git format-patch' on a list of commits.""" revs, summaries = gitcmds.log_helper() to_export = select_commits(N_('Export Patches'), revs, summaries) if not to_export: return cmds.do(cmds.FormatPatch, reversed(to_export), reversed(revs))
def cherry_pick(): """Launch the 'Cherry-Pick' dialog.""" revs, summaries = gitcmds.log_helper(all=True) commits = select_commits(N_("Cherry-Pick Commit"), revs, summaries, multiselect=False) if not commits: return cmds.do(cmds.CherryPick, commits)
def choose_commit(self, cmd): revs, summaries = gitcmds.log_helper() sha1s = select_commits(N_("Select Commit"), revs, summaries, multiselect=False) if not sha1s: return sha1 = sha1s[0] cmds.do(cmd, sha1)
def choose_commit(self): revs, summaries = gitcmds.log_helper() sha1s = select_commits('Select Commit Message', revs, summaries, multiselect=False) if not sha1s: return sha1 = sha1s[0] self.load_previous_message(sha1)
def cherry_pick(): """Launch the 'Cherry-Pick' dialog.""" revs, summaries = gitcmds.log_helper(all=True) commits = select_commits('Cherry-Pick Commit', revs, summaries, multiselect=False) if not commits: return cola.notifier().broadcast(signals.cherry_pick, commits)
def cherry_pick(): """Launch the 'Cherry-Pick' dialog.""" revs, summaries = gitcmds.log_helper(all=True) commits = select_commits(N_('Cherry-Pick Commit'), revs, summaries, multiselect=False) if not commits: return cmds.do(cmds.CherryPick, commits)
def choose_commit(self, cmd): revs, summaries = gitcmds.log_helper() sha1s = select_commits(N_('Select Commit'), revs, summaries, multiselect=False) if not sha1s: return sha1 = sha1s[0] cmds.do(cmd, sha1)
def choose_commit(self): revs, summaries = gitcmds.log_helper() sha1s = select_commits('Select Commit Message', revs, summaries, multiselect=False) if not sha1s: return sha1 = sha1s[0] cmds.do(cmds.LoadPreviousMessage, sha1)
def export_patches(): """Run 'git format-patch' on a list of commits.""" revs, summaries = gitcmds.log_helper() to_export = select_commits('Export Patches', revs, summaries) if not to_export: return to_export.reverse() revs.reverse() cola.notifier().broadcast(signals.format_patch, to_export, revs)
def difftool_predecessor(self, paths): """Prompt for an older commit and launch difftool against it.""" args = ["--"] + paths revs, summaries = gitcmds.log_helper(all=False, extra_args=args) commits = select_commits(N_("Select Previous Version"), revs, summaries, multiselect=False) if not commits: return commit = commits[0] cola.difftool.launch([commit, "--"] + paths)
def export_patches(): """Run 'git format-patch' on a list of commits.""" revs, summaries = gitcmds.log_helper() to_export = select_commits('Export Patches', revs, summaries) if not to_export: return to_export.reverse() revs.reverse() cmds.do(cmds.FormatPatch, to_export, revs)
def export_patches(): """Run 'git format-patch' on a list of commits.""" revs, summaries = gitcmds.log_helper() to_export = select_commits(N_("Export Patches"), revs, summaries) if not to_export: return to_export.reverse() revs.reverse() cmds.do(cmds.FormatPatch, to_export, revs)
def difftool_predecessor(self, paths): """Prompt for an older commit and launch difftool against it.""" args = ['--'] + paths revs, summaries = gitcmds.log_helper(all=False, extra_args=args) commits = select_commits(N_('Select Previous Version'), revs, summaries, multiselect=False) if not commits: return commit = commits[0] difftool.launch([commit, '--'] + paths)