Bläddra i källkod

Improve formatting, update docstring.

Jelmer Vernooij 15 år sedan
förälder
incheckning
115d2a9f75
1 ändrade filer med 9 tillägg och 3 borttagningar
  1. 9 3
      bin/dulwich

+ 9 - 3
bin/dulwich

@@ -1,5 +1,5 @@
 #!/usr/bin/python
-# dul-daemon - Simple git smart server client
+# dulwich - Simple command-line interface to Dulwich
 # Copyright (C) 2008 Jelmer Vernooij <jelmer@samba.org>
 # 
 # This program is free software; you can redistribute it and/or
@@ -17,6 +17,13 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA  02110-1301, USA.
 
+"""Simple command-line interface to Dulwich>
+
+This is a very simple command-line wrapper for Dulwich. It is by 
+no means intended to be a full-blown Git command-line interface but just 
+a way to test Dulwich.
+"""
+
 import os
 import sys
 from getopt import getopt
@@ -70,7 +77,6 @@ def cmd_log(args):
 
 
 def cmd_dump_pack(args):
-
     opts, args = getopt(args, "", [])
 
     if args == []:
@@ -94,7 +100,6 @@ def cmd_dump_pack(args):
 
 
 def cmd_dump_index(args):
-
     opts, args = getopt(args, "", [])
 
     if args == []:
@@ -159,6 +164,7 @@ def cmd_commit(args):
                           os.getenv("GIT_AUTHOR_EMAIL"))
     r.do_commit(committer=committer, author=author, message=opts["--message"])
 
+
 commands = {
     "commit": cmd_commit,
     "fetch-pack": cmd_fetch_pack,