Explorar o código

Add example invocation for diff.py.

Jelmer Vernooij %!s(int64=11) %!d(string=hai) anos
pai
achega
0f6a065832
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      examples/diff.py

+ 3 - 0
examples/diff.py

@@ -1,6 +1,9 @@
 #!/usr/bin/python
 # This trivial script demonstrates how to extract the unified diff for a single
 # commit in a local repository.
+#
+# Example usage:
+#  python examples/diff.py
 
 from dulwich.repo import Repo
 from dulwich.patch import write_tree_diff