def write_packed_refs(f, packed_refs, peeled_refs=None):
 if (peeled_refs is None):
  peeled_refs = {}
 else:
  f.write('# pack-refs with: peeled\n')
 for refname in sorted(packed_refs.keys()):
  f.write(git_line(packed_refs[refname], refname))
  if (refname in peeled_refs):
   f.write((('^' + peeled_refs[refname]) + '\n'))

def write_packed_refs ( f , packed_refs , peeled_refs = None ) : if ( peeled_refs is None ) : peeled_refs = { } else : f . write ( '# pack-refs with: peeled\n' ) for refname in sorted ( packed_refs . keys ( ) ) : f . write ( git_line ( packed_refs [ refname ] , refname ) ) if ( refname in peeled_refs ) : f . write ( ( ( '^' + peeled_refs [ refname ] ) + '\n' ) )
write a packed refs file .