def get_summary(commit):
 return commit.message.splitlines()[0].replace(' ', '-')

def get_summary ( commit ) : return commit . message . splitlines ( ) [ 0 ] . replace ( ' ' , '-' )
determine the summary line for use in a filename .