git.pretty_commit() re-implemented with "git show" (bug #10018)
[stgit] / stgit / commands / init.py
index 77ee1a2..475a4ce 100644 (file)
@@ -24,9 +24,14 @@ from stgit.utils import *
 from stgit import stack, git
 
 
-help = 'initialise the tree for use with StGIT'
-usage = '%prog'
+help = 'initialise the current branch for use with StGIT'
+usage = """%prog [options]
 
+Initialise the current GIT branch to be used as an StGIT stack. Note
+that you must already be in a GIT repository and .git/HEAD must point
+to a valid file in refs/heads/."""
+
+directory = DirectoryHasRepository()
 options = []