浏览代码

Clarify behaviour of parse_committishs.

Jelmer Vernooij 9 年之前
父节点
当前提交
2be2b7419b
共有 1 个文件被更改,包括 5 次插入1 次删除
  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