#NEWLINE# @ classmethod #NEWLINE# def list_from_string( cls , repo , text ) : #NEWLINE# #INDENT# '\n        Parse out head information into a list of head objects\n\n        ``repo``\n            is the Repo\n        ``text``\n            is the text output from the git-for-each-ref command\n\n        Returns\n            git.Head[]\n        ' #NEWLINE# heads = [ ] #NEWLINE# for line in text . splitlines ( ) : #NEWLINE# #INDENT# heads . append ( cls . from_string ( repo , line ) ) #NEWLINE# #UNINDENT# return heads