#NEWLINE# def do( args ) : #NEWLINE# #INDENT# branch = args . branch #NEWLINE# short = args . short #NEWLINE# if short : #NEWLINE# #INDENT# log_cmd = [ 'shortlog' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# colors = [ 'green' , 'reset' , 'yellow' , 'reset' , 'bold blue' , 'reset' ] #NEWLINE# log_format = '%m {}%h{} - {}%d{} %s {}<%an>{}' #NEWLINE# if ui . config_color ( sys . stdout ) : #NEWLINE# #INDENT# log_format = log_format . format ( * ( '%C({})' . format ( x ) for x in colors ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# log_format = log_format . format ( * ( [ '' ] * len ( colors ) ) ) #NEWLINE# #UNINDENT# log_cmd = [ 'log' , ( '--pretty=format:%s' % log_format ) ] #NEWLINE# #UNINDENT# git_worktree = qisrc . parsers . get_git_worktree ( args ) #NEWLINE# git_projects = qisrc . parsers . get_git_projects ( git_worktree , args , default_all = False , use_build_deps = True ) #NEWLINE# qisrc . diff . diff_worktree ( git_worktree , git_projects , branch , x )