Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 18.117.132.49
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
libexec /
git-core /
Delete
Unzip
Name
Size
Permission
Date
Action
mergetools
[ DIR ]
drwxr-xr-x
2024-12-19 11:31
git
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-add
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-am
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-annotate
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-apply
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-archive
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-bisect
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-blame
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-branch
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-bugreport
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-bundle
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-cat-file
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-check-attr
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-check-ignore
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-check-mailmap
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-check-ref-format
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-checkout
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-checkout--worker
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-checkout-index
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-cherry
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-cherry-pick
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-clean
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-clone
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-column
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-commit
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-commit-graph
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-commit-tree
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-config
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-contacts
4.4
KB
-rwxr-xr-x
2024-05-31 00:41
git-count-objects
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-credential
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-credential-cache
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-credential-cache--daemon
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-credential-netrc
10.69
KB
-rwxr-xr-x
2024-12-17 04:11
git-credential-store
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-describe
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-diagnose
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-diff
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-diff-files
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-diff-index
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-diff-tree
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-difftool
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-difftool--helper
2.55
KB
-rwxr-xr-x
2024-12-17 04:11
git-fast-export
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-fast-import
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-fetch
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-fetch-pack
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-filter-branch
15.49
KB
-rwxr-xr-x
2024-12-17 04:11
git-fmt-merge-msg
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-for-each-ref
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-for-each-repo
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-format-patch
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-fsck
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-fsck-objects
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-fsmonitor--daemon
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-gc
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-get-tar-commit-id
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-grep
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-hash-object
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-help
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-hook
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-http-backend
2.14
MB
-rwxr-xr-x
2024-12-17 04:12
git-http-fetch
2.17
MB
-rwxr-xr-x
2024-12-17 04:12
git-http-push
2.19
MB
-rwxr-xr-x
2024-12-17 04:12
git-imap-send
2.19
MB
-rwxr-xr-x
2024-12-17 04:12
git-index-pack
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-init
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-init-db
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-interpret-trailers
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-log
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-ls-files
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-ls-remote
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-ls-tree
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-mailinfo
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-mailsplit
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-maintenance
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-merge
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-merge-base
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-merge-file
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-merge-index
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-merge-octopus
2.42
KB
-rwxr-xr-x
2024-12-17 04:11
git-merge-one-file
3.61
KB
-rwxr-xr-x
2024-12-17 04:11
git-merge-ours
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-merge-recursive
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-merge-resolve
1.2
KB
-rwxr-xr-x
2024-12-17 04:11
git-merge-subtree
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-merge-tree
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-mergetool
11.42
KB
-rwxr-xr-x
2024-12-17 04:11
git-mergetool--lib
10.48
KB
-rw-r--r--
2024-12-17 04:11
git-mktag
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-mktree
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-multi-pack-index
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-mv
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-name-rev
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-notes
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-pack-objects
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-pack-redundant
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-pack-refs
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-patch-id
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-prune
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-prune-packed
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-pull
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-push
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-quiltimport
3.61
KB
-rwxr-xr-x
2024-12-17 04:11
git-range-diff
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-read-tree
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-rebase
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-receive-pack
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-reflog
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-remote
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-remote-ext
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-remote-fd
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-remote-ftp
2.19
MB
-rwxr-xr-x
2024-12-17 04:12
git-remote-ftps
2.19
MB
-rwxr-xr-x
2024-12-17 04:12
git-remote-http
2.19
MB
-rwxr-xr-x
2024-12-17 04:12
git-remote-https
2.19
MB
-rwxr-xr-x
2024-12-17 04:12
git-repack
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-replace
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-request-pull
4.05
KB
-rwxr-xr-x
2024-12-17 04:11
git-rerere
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-reset
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-restore
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-rev-list
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-rev-parse
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-revert
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-rm
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-send-pack
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-sh-i18n
1.64
KB
-rw-r--r--
2024-12-17 04:11
git-sh-i18n--envsubst
2.13
MB
-rwxr-xr-x
2024-12-17 04:12
git-sh-setup
8.2
KB
-rw-r--r--
2024-12-17 04:11
git-shell
2.13
MB
-rwxr-xr-x
2024-12-17 04:12
git-shortlog
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-show
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-show-branch
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-show-index
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-show-ref
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-sparse-checkout
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-stage
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-stash
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-status
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-stripspace
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-submodule
10.26
KB
-rwxr-xr-x
2024-12-17 04:11
git-submodule--helper
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-switch
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-symbolic-ref
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-tag
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-unpack-file
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-unpack-objects
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-update-index
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-update-ref
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-update-server-info
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-upload-archive
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-upload-pack
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-var
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-verify-commit
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-verify-pack
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-verify-tag
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-version
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-web--browse
4.3
KB
-rwxr-xr-x
2024-12-17 04:11
git-whatchanged
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-worktree
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
git-write-tree
3.67
MB
-rwxr-xr-x
2024-12-17 04:12
scalar
2.18
MB
-rwxr-xr-x
2024-12-17 04:12
Save
Rename
#!/bin/sh # # git-submodule.sh: add, init, update or list git submodules # # Copyright (c) 2007 Lars Hjemli dashless=$(basename "$0" | sed -e 's/-/ /') USAGE="[--quiet] [--cached] or: $dashless [--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--] <repository> [<path>] or: $dashless [--quiet] status [--cached] [--recursive] [--] [<path>...] or: $dashless [--quiet] init [--] [<path>...] or: $dashless [--quiet] deinit [-f|--force] (--all| [--] <path>...) or: $dashless [--quiet] update [--init [--filter=<filter-spec>]] [--remote] [-N|--no-fetch] [-f|--force] [--checkout|--merge|--rebase] [--[no-]recommend-shallow] [--reference <repository>] [--recursive] [--[no-]single-branch] [--] [<path>...] or: $dashless [--quiet] set-branch (--default|--branch <branch>) [--] <path> or: $dashless [--quiet] set-url [--] <path> <newurl> or: $dashless [--quiet] summary [--cached|--files] [--summary-limit <n>] [commit] [--] [<path>...] or: $dashless [--quiet] foreach [--recursive] <command> or: $dashless [--quiet] sync [--recursive] [--] [<path>...] or: $dashless [--quiet] absorbgitdirs [--] [<path>...]" OPTIONS_SPEC= SUBDIRECTORY_OK=Yes . git-sh-setup require_work_tree wt_prefix=$(git rev-parse --show-prefix) cd_to_toplevel # Tell the rest of git that any URLs we get don't come # directly from the user, so it can apply policy as appropriate. GIT_PROTOCOL_FROM_USER=0 export GIT_PROTOCOL_FROM_USER command= quiet= branch= force= reference= cached= recursive= init= require_init= files= remote= nofetch= rebase= merge= checkout= custom_name= depth= progress= dissociate= single_branch= jobs= recommend_shallow= filter= isnumber() { n=$(($1 + 0)) 2>/dev/null && test "$n" = "$1" } # # Add a new submodule to the working tree, .gitmodules and the index # # $@ = repo path # # optional branch is stored in global branch variable # cmd_add() { # parse $args after "submodule ... add". reference_path= while test $# -ne 0 do case "$1" in -b | --branch) case "$2" in '') usage ;; esac branch=$2 shift ;; -f | --force) force=$1 ;; -q|--quiet) quiet=1 ;; --progress) progress=1 ;; --reference) case "$2" in '') usage ;; esac reference_path=$2 shift ;; --reference=*) reference_path="${1#--reference=}" ;; --dissociate) dissociate=1 ;; --name) case "$2" in '') usage ;; esac custom_name=$2 shift ;; --depth) case "$2" in '') usage ;; esac depth="--depth=$2" shift ;; --depth=*) depth=$1 ;; --) shift break ;; -*) usage ;; *) break ;; esac shift done if test -z "$1" then usage fi git ${wt_prefix:+-C "$wt_prefix"} submodule--helper add ${quiet:+--quiet} ${force:+--force} ${progress:+"--progress"} ${branch:+--branch "$branch"} ${reference_path:+--reference "$reference_path"} ${dissociate:+--dissociate} ${custom_name:+--name "$custom_name"} ${depth:+"$depth"} -- "$@" } # # Execute an arbitrary command sequence in each checked out # submodule # # $@ = command to execute # cmd_foreach() { # parse $args after "submodule ... foreach". while test $# -ne 0 do case "$1" in -q|--quiet) quiet=1 ;; --recursive) recursive=1 ;; -*) usage ;; *) break ;; esac shift done git ${wt_prefix:+-C "$wt_prefix"} submodule--helper foreach ${quiet:+--quiet} ${recursive:+--recursive} -- "$@" } # # Register submodules in .git/config # # $@ = requested paths (default to all) # cmd_init() { # parse $args after "submodule ... init". while test $# -ne 0 do case "$1" in -q|--quiet) quiet=1 ;; --) shift break ;; -*) usage ;; *) break ;; esac shift done git ${wt_prefix:+-C "$wt_prefix"} submodule--helper init ${quiet:+--quiet} -- "$@" } # # Unregister submodules from .git/config and remove their work tree # cmd_deinit() { # parse $args after "submodule ... deinit". deinit_all= while test $# -ne 0 do case "$1" in -f|--force) force=$1 ;; -q|--quiet) quiet=1 ;; --all) deinit_all=t ;; --) shift break ;; -*) usage ;; *) break ;; esac shift done git ${wt_prefix:+-C "$wt_prefix"} submodule--helper deinit ${quiet:+--quiet} ${force:+--force} ${deinit_all:+--all} -- "$@" } # # Update each submodule path to correct revision, using clone and checkout as needed # # $@ = requested paths (default to all) # cmd_update() { # parse $args after "submodule ... update". while test $# -ne 0 do case "$1" in -q|--quiet) quiet=1 ;; -v|--verbose) quiet=0 ;; --progress) progress=1 ;; -i|--init) init=1 ;; --require-init) require_init=1 ;; --remote) remote=1 ;; -N|--no-fetch) nofetch=1 ;; -f|--force) force=$1 ;; -r|--rebase) rebase=1 ;; --reference) case "$2" in '') usage ;; esac reference="--reference=$2" shift ;; --reference=*) reference="$1" ;; --dissociate) dissociate=1 ;; -m|--merge) merge=1 ;; --recursive) recursive=1 ;; --checkout) checkout=1 ;; --recommend-shallow) recommend_shallow="--recommend-shallow" ;; --no-recommend-shallow) recommend_shallow="--no-recommend-shallow" ;; --depth) case "$2" in '') usage ;; esac depth="--depth=$2" shift ;; --depth=*) depth=$1 ;; -j|--jobs) case "$2" in '') usage ;; esac jobs="--jobs=$2" shift ;; --jobs=*) jobs=$1 ;; --single-branch) single_branch="--single-branch" ;; --no-single-branch) single_branch="--no-single-branch" ;; --filter) case "$2" in '') usage ;; esac filter="--filter=$2" shift ;; --filter=*) filter="$1" ;; --) shift break ;; -*) usage ;; *) break ;; esac shift done git ${wt_prefix:+-C "$wt_prefix"} submodule--helper update \ ${quiet:+--quiet} \ ${force:+--force} \ ${progress:+"--progress"} \ ${remote:+--remote} \ ${recursive:+--recursive} \ ${init:+--init} \ ${nofetch:+--no-fetch} \ ${rebase:+--rebase} \ ${merge:+--merge} \ ${checkout:+--checkout} \ ${reference:+"$reference"} \ ${dissociate:+"--dissociate"} \ ${depth:+"$depth"} \ ${require_init:+--require-init} \ ${dissociate:+"--dissociate"} \ $single_branch \ $recommend_shallow \ $jobs \ $filter \ -- \ "$@" } # # Configures a submodule's default branch # # $@ = requested path # cmd_set_branch() { default= branch= while test $# -ne 0 do case "$1" in -q|--quiet) # we don't do anything with this but we need to accept it ;; -d|--default) default=1 ;; -b|--branch) case "$2" in '') usage ;; esac branch=$2 shift ;; --) shift break ;; -*) usage ;; *) break ;; esac shift done git ${wt_prefix:+-C "$wt_prefix"} submodule--helper set-branch ${quiet:+--quiet} ${branch:+--branch "$branch"} ${default:+--default} -- "$@" } # # Configures a submodule's remote url # # $@ = requested path, requested url # cmd_set_url() { while test $# -ne 0 do case "$1" in -q|--quiet) quiet=1 ;; --) shift break ;; -*) usage ;; *) break ;; esac shift done git ${wt_prefix:+-C "$wt_prefix"} submodule--helper set-url ${quiet:+--quiet} -- "$@" } # # Show commit summary for submodules in index or working tree # # If '--cached' is given, show summary between index and given commit, # or between working tree and given commit # # $@ = [commit (default 'HEAD'),] requested paths (default all) # cmd_summary() { summary_limit=-1 for_status= diff_cmd=diff-index # parse $args after "submodule ... summary". while test $# -ne 0 do case "$1" in --cached) cached=1 ;; --files) files="$1" ;; --for-status) for_status="$1" ;; -n|--summary-limit) summary_limit="$2" isnumber "$summary_limit" || usage shift ;; --summary-limit=*) summary_limit="${1#--summary-limit=}" isnumber "$summary_limit" || usage ;; --) shift break ;; -*) usage ;; *) break ;; esac shift done git ${wt_prefix:+-C "$wt_prefix"} submodule--helper summary ${files:+--files} ${cached:+--cached} ${for_status:+--for-status} ${summary_limit:+-n $summary_limit} -- "$@" } # # List all submodules, prefixed with: # - submodule not initialized # + different revision checked out # # If --cached was specified the revision in the index will be printed # instead of the currently checked out revision. # # $@ = requested paths (default to all) # cmd_status() { # parse $args after "submodule ... status". while test $# -ne 0 do case "$1" in -q|--quiet) quiet=1 ;; --cached) cached=1 ;; --recursive) recursive=1 ;; --) shift break ;; -*) usage ;; *) break ;; esac shift done git ${wt_prefix:+-C "$wt_prefix"} submodule--helper status ${quiet:+--quiet} ${cached:+--cached} ${recursive:+--recursive} -- "$@" } # # Sync remote urls for submodules # This makes the value for remote.$remote.url match the value # specified in .gitmodules. # cmd_sync() { while test $# -ne 0 do case "$1" in -q|--quiet) quiet=1 shift ;; --recursive) recursive=1 shift ;; --) shift break ;; -*) usage ;; *) break ;; esac done git ${wt_prefix:+-C "$wt_prefix"} submodule--helper sync ${quiet:+--quiet} ${recursive:+--recursive} -- "$@" } cmd_absorbgitdirs() { git ${wt_prefix:+-C "$wt_prefix"} submodule--helper absorbgitdirs "$@" } # This loop parses the command line arguments to find the # subcommand name to dispatch. Parsing of the subcommand specific # options are primarily done by the subcommand implementations. # Subcommand specific options such as --branch and --cached are # parsed here as well, for backward compatibility. while test $# != 0 && test -z "$command" do case "$1" in add | foreach | init | deinit | update | set-branch | set-url | status | summary | sync | absorbgitdirs) command=$1 ;; -q|--quiet) quiet=1 ;; --cached) cached=1 ;; --) break ;; -*) usage ;; *) break ;; esac shift done # No command word defaults to "status" if test -z "$command" then if test $# = 0 then command=status else usage fi fi # "--cached" is accepted only by "status" and "summary" if test -n "$cached" && test "$command" != status && test "$command" != summary then usage fi "cmd_$(echo $command | sed -e s/-/_/g)" "$@"