Преглед на файлове

add read_packed_refs docstring.

Jelmer Vernooij преди 16 години
родител
ревизия
ff80e1b4ff
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  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] == "#":