git.samba.org
/
jelmer
/
dulwich-libgit2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow specifying path to 'dulwich log'.
[jelmer/dulwich-libgit2.git]
/
bin
/
dulwich
diff --git
a/bin/dulwich
b/bin/dulwich
index 8ebc5fce7c80cbecb978d80fb7d0e372f3cdc9dd..04714f9b6eb099fe94a38a51bdc891d5f4ab4420 100755
(executable)
--- a/
bin/dulwich
+++ b/
bin/dulwich
@@
-47,7
+47,11
@@
def cmd_fetch_pack(args):
def cmd_log(args):
from dulwich.repo import Repo
opts, args = getopt(args, "", [])
- r = Repo(".")
+ if len(args) > 0:
+ path = args.pop(0)
+ else:
+ path = "."
+ r = Repo(path)
todo = [r.head()]
done = set()
while todo: