Browse Source

add read_packed_refs docstring.

Jelmer Vernooij 16 năm trước cách đây
mục cha
commit
ff80e1b4ff
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      dulwich/repo.py

+ 6 - 0
dulwich/repo.py

@@ -71,6 +71,12 @@ class Tags(object):
 
 
 def read_packed_refs(f):
+    """Read a packed refs file.
+
+    Yields tuples with ref names and SHA1s.
+
+    :param f: file-like object to read from
+    """
     l = f.readline()
     for l in f.readlines():
         if l[0] == "#":