def difftool_run():
 files = selection.selected_group()
 if (not files):
  return
 s = selection.selection()
 model = main.model()
 difftool_launch_with_head(files, bool(s.staged), model.head)

def difftool_run ( ) : files = selection . selected_group ( ) if ( not files ) : return s = selection . selection ( ) model = main . model ( ) difftool_launch_with_head ( files , bool ( s . staged ) , model . head )
start a default difftool session .