#NEWLINE# def _remove_config( self , rel_path , message ) : #NEWLINE# #INDENT# 'Remove and commit the removal of an existing config file.\n\n        :rel_path: the string relative path to the config file\n        :message: the string commit message for the file\n\n        ' #NEWLINE# if phlgit_diffindex . is_index_dirty ( self . _repo ) : #NEWLINE# #INDENT# raise Error ( 'git index has staged changes' ) #NEWLINE# #UNINDENT# path = self . _make_abspath ( rel_path ) #NEWLINE# if ( not os . path . exists ( path ) ) : #NEWLINE# #INDENT# raise Error ( "config doesn't exist: {}" . format ( rel_path ) ) #NEWLINE# #UNINDENT# self . _repo ( 'rm' , rel_path ) #NEWLINE# phlgit_commit . index ( message . _repo , message )