]> git.madduck.net Git - code/vcsh.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Reformat and update docs, completion etc
authorRichard Hartmann <richih.mailinglist@gmail.com>
Sun, 20 Nov 2011 10:43:01 +0000 (11:43 +0100)
committerRichard Hartmann <richih.mailinglist@gmail.com>
Sun, 20 Nov 2011 10:43:01 +0000 (11:43 +0100)
_vcsh
doc/vcsh.1.ronn
vcsh

diff --git a/_vcsh b/_vcsh
index 5a14f647a8971db6fca05a81d69cb7bf73dc136b..477b2b1cb90b806456b741e2b4abbe55c4c1edcb 100644 (file)
--- a/_vcsh
+++ b/_vcsh
@@ -4,10 +4,11 @@
 #              exit\:"exit repo"
 _arguments \
        ':subcommand:((
 #              exit\:"exit repo"
 _arguments \
        ':subcommand:((
+               clone\:"clone from repo"
                help\:"display help"
                help\:"display help"
+               init\:"init & clone from repo"
+               delete\:"delete repo"
                list\:"list all repos"
                run\:"run command on repo"
                list\:"list all repos"
                run\:"run command on repo"
-               init\:"init & clone from repo"
-               clone\:"clone from repo"
                seed-gitignore\:"seed .gitignore.d/foo from git ls-files"
        ))'
                seed-gitignore\:"seed .gitignore.d/foo from git ls-files"
        ))'
index 270537785fd99bd5eda6601d1aa1186c2a189323..2b5cb36bceaa0e06a11d8da1a438e23a32da05b5 100644 (file)
@@ -3,17 +3,20 @@ vcsh(1) - manage and sync config files via git
 
 ## SYNOPSIS
 
 
 ## SYNOPSIS
 
-`vcsh` init <foo>
-
 `vcsh` clone <url> [<location>]
 
 `vcsh` clone <url> [<location>]
 
-`vcsh` run <foo> git command
+`vcsh` help
+
+`vcsh` delete
+
+`vcsh` init <foo>
 
 `vcsh` list
 
 
 `vcsh` list
 
+`vcsh` run <foo> git command
+
 `vcsh` seed-gitignore
 
 `vcsh` seed-gitignore
 
-`vcsh` help
 
 ## DESCRIPTION
 
 
 ## DESCRIPTION
 
@@ -35,25 +38,28 @@ A sample configuration for `vcsh` and `mr` can be found at
 
 ## OPTIONS
 
 
 ## OPTIONS
 
+* clone:
+  Clone an existing repository.
+
+* help:
+  Display help.
+
+* delete:
+  Delete an existing repository.
+
 * init:
   Initialize an empty repository.
 
 * init:
   Initialize an empty repository.
 
-* clone:
-  Clone an existing repository.
+* list:
+  List all local vcsh repositories.
 
 * run:
   Run command with <$GIT_DIR> and <$GIT_WORK_TREE> set. Allows you to run any
   and all commands without any restrictions. Use with care.
 
 
 * run:
   Run command with <$GIT_DIR> and <$GIT_WORK_TREE> set. Allows you to run any
   and all commands without any restrictions. Use with care.
 
-* list:
-  List all local vcsh repositories.
-
 * seed-gitignore:
   Seed .gitignore.d/<repo> from git ls-files.
 
 * seed-gitignore:
   Seed .gitignore.d/<repo> from git ls-files.
 
-* help:
-  Display help.
-
 ## ENVIRONMENT
 
 As noted earlier, `vcsh` will set <$GIT_DIR> and <$GIT_WORK_TREE> to the
 ## ENVIRONMENT
 
 As noted earlier, `vcsh` will set <$GIT_DIR> and <$GIT_WORK_TREE> to the
diff --git a/vcsh b/vcsh
index 25f52f844099e382e42310dda2d8694c30228b50..d0e7b37b4992d6a03072b99faa3698d7a631e0b8 100755 (executable)
--- a/vcsh
+++ b/vcsh
@@ -33,16 +33,15 @@ verbose() {
 help() {
        echo "usage: $SELF <args>
 
 help() {
        echo "usage: $SELF <args>
 
+   clone <remote> \\
+         [<repo>]    Clone from an existing repository
    help              Display this help
    help              Display this help
-
+   delete            Delete an existing repository
+   init <repo>       Initialize a new repository
    list              List all repos
    list              List all repos
-
    run <repo> \\
        <command>     Use this repository
 
    run <repo> \\
        <command>     Use this repository
 
-   init <repo>       Initialize a new repository
-   clone <remote> \\
-         [<repo>]    Clone from an existing repository
    seed-gitignore \\
    <repo>            Seed .gitignore.d/<repo> from git ls-files" >&2
 }
    seed-gitignore \\
    <repo>            Seed .gitignore.d/<repo> from git ls-files" >&2
 }