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"
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."
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
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"
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
}