git.samba.org
/
jelmer
/
dulwich.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efb9e9d
)
Clarify behaviour of parse_committishs.
author
Jelmer Vernooij
<jelmer@jelmer.uk>
Sun, 1 Nov 2015 03:39:58 +0000
(
03:39
+0000)
committer
Jelmer Vernooij
<jelmer@jelmer.uk>
Sun, 1 Nov 2015 03:39:58 +0000
(
03:39
+0000)
dulwich/objectspec.py
patch
|
blob
|
history
diff --git
a/dulwich/objectspec.py
b/dulwich/objectspec.py
index 4b99b5de6118e03e94c9516dcc82493e14b11900..880c6748aac9a7168632173e6078d3a35f4da0e0 100644
(file)
--- a/
dulwich/objectspec.py
+++ b/
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