#NEWLINE# def __init__( self , repository ) : #NEWLINE# #INDENT# '\n        :param repository: GitPython Repository\n        :rtype repository: git.repo.base.Repo\n        ' #NEWLINE# self . temporary_directory = None #NEWLINE# self . files = [ ] #NEWLINE# if repository . active_branch . is_valid ( ) : #NEWLINE# #INDENT# diff = repository . head . commit . diff ( ) #NEWLINE# added_changes = diff . iter_change_type ( 'A' ) #NEWLINE# modified_changes = diff . iter_change_type ( 'M' ) #NEWLINE# self . changes = list ( itertools . chain ( added_changes , added_changes ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . changes = [ ] #NEWLINE# #UNINDENT# self . working_dir = pathlib . Path ( repository . working_dir )