From 3c619d5a7f8223fcdf2bb260cf426e27ce2278f8 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 23 Oct 2014 10:28:19 +0200 Subject: [PATCH] Document ls, sort help by name --- zit | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/zit b/zit index da15e3b..6cdd397 100755 --- a/zit +++ b/zit @@ -28,11 +28,20 @@ zit_help() { cmd="$1" shift case "$cmd" in + clone) + echo "usage: zit clone REPO [FILE]" + echo "Create and track FILE, retrieving its history from repository REPO." + echo "FILE is guessed by REPO by stripping the '.git' suffix from the last path component" + ;; git) git help "$@" ;; - list|tracked) - echo "usage: zit list" + import) + echo "usage: zit import FILE" + echo "Import history from an RCS-tracked file. Requires rcs-fast-export." + ;; + ls|list|tracked) + echo "usage: zit $cmd" echo "Show tracked files, with a one-letter prefix indicating their status:" echo " H cached" echo " M unmerged" @@ -41,10 +50,6 @@ zit_help() { echo " K to be killed" echo " ? other" ;; - import) - echo "usage: zit import FILE" - echo "Import history from an RCS-tracked file. Requires rcs-fast-export." - ;; view) echo "usage: zit view FILE" echo "Browse FILE's history with gitk (if possible) or tig." @@ -53,10 +58,13 @@ zit_help() { echo "usage: zit with FILE COMMAND..." echo "Run COMMAND after setting up the git environment for FILE." ;; - clone) - echo "usage: zit clone REPO [FILE]" - echo "Create and track FILE, retrieving its history from repository REPO." - echo "FILE is guessed by REPO by stripping the '.git' suffix from the last path component" + zig) + echo "usage: zig FILE" + echo "Browse FILE's history with tig." + ;; + zik) + echo "usage: zik FILE" + echo "Browse FILE's history with gitk." ;; *) echo $USAGE @@ -70,6 +78,7 @@ zit_help() { echo " import Import RCS history for FILE" echo " init Synonym for track" echo " list Synonym for tracked" + echo " ls Synonym for tracked" echo " track Start tracking changes to FILE" echo " tracked List tracked files in current directory" echo " view Browse FILE's history with gitk or tig" @@ -77,14 +86,6 @@ zit_help() { echo "" echo "See 'zit help git' or 'git help' for git commands." ;; - zig) - echo "usage: zig FILE" - echo "Browse FILE's history with tig." - ;; - zik) - echo "usage: zik FILE" - echo "Browse FILE's history with gitk." - ;; esac } -- 2.32.0.93.g670b81a890