def export_patches():
 (revs, summaries) = gitcmds.log_helper()
 to_export = select_commits(N_(u'Export Patches'), revs, summaries)
 if (not to_export):
  return
 cmds.do(cmds.FormatPatch, reversed(to_export), reversed(revs))

def export_patches ( ) : ( revs , summaries ) = gitcmds . log_helper ( ) to_export = select_commits ( N_ ( u'Export Patches' ) , revs , summaries ) if ( not to_export ) : return cmds . do ( cmds . FormatPatch , reversed ( to_export ) , reversed ( revs ) )
run git format-patch on a list of commits .