Selaa lähdekoodia

Clarify behaviour of parse_committishs.

Jelmer Vernooij 9 vuotta sitten
vanhempi
commit
2be2b7419b
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      dulwich/objectspec.py

+ 5 - 1
dulwich/objectspec.py

@@ -133,7 +133,8 @@ def parse_commit_range(repo, committishs):
     :raise ValueError: If the range can not be parsed
     """
     committishs = to_bytes(committishs)
-    return iter([repo[committishs]])
+    # TODO(jelmer): Support more than a single commit..
+    return iter([parse_commit(committishs)])
 
 
 def parse_commit(repo, committish):
@@ -147,3 +148,6 @@ def parse_commit(repo, committish):
     """
     committish = to_bytes(committish)
     return repo[committish] # For now..
+
+
+# TODO: parse_path_in_tree(), which handles e.g. v1.0:Documentation