def read_packed_refs(f):
 for l in f:
  if l.startswith('#'):
   continue
  if l.startswith('^'):
   raise PackedRefsException('found peeled ref in packed-refs without peeled')
  (yield _split_ref_line(l))

def read_packed_refs ( f ) : for l in f : if l . startswith ( '#' ) : continue if l . startswith ( '^' ) : raise PackedRefsException ( 'found peeled ref in packed-refs without peeled' ) ( yield _split_ref_line ( l ) )
read a packed refs file .