#NEWLINE# def _git_commit( message , push = False ) : #NEWLINE# #INDENT# assert message #NEWLINE# if ( input ( 'About to git commit {}: are you sure?' ) != 'yes' ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# _call ( 'git commit -am "{}"' . format ( message ) ) #NEWLINE# if push : #NEWLINE# #INDENT# if ( input ( 'About to git push upstream master: are you sure?' ) != 'yes' ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# _call ( 'git push upstream master' )