404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.15.198.69: ~ $
#!/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)" "$@"

Filemanager

Name Type Size Permission Actions
mergetools Folder 0755
git File 3.67 MB 0755
git-add File 3.67 MB 0755
git-am File 3.67 MB 0755
git-annotate File 3.67 MB 0755
git-apply File 3.67 MB 0755
git-archive File 3.67 MB 0755
git-bisect File 3.67 MB 0755
git-blame File 3.67 MB 0755
git-branch File 3.67 MB 0755
git-bugreport File 3.67 MB 0755
git-bundle File 3.67 MB 0755
git-cat-file File 3.67 MB 0755
git-check-attr File 3.67 MB 0755
git-check-ignore File 3.67 MB 0755
git-check-mailmap File 3.67 MB 0755
git-check-ref-format File 3.67 MB 0755
git-checkout File 3.67 MB 0755
git-checkout--worker File 3.67 MB 0755
git-checkout-index File 3.67 MB 0755
git-cherry File 3.67 MB 0755
git-cherry-pick File 3.67 MB 0755
git-clean File 3.67 MB 0755
git-clone File 3.67 MB 0755
git-column File 3.67 MB 0755
git-commit File 3.67 MB 0755
git-commit-graph File 3.67 MB 0755
git-commit-tree File 3.67 MB 0755
git-config File 3.67 MB 0755
git-contacts File 4.4 KB 0755
git-count-objects File 3.67 MB 0755
git-credential File 3.67 MB 0755
git-credential-cache File 3.67 MB 0755
git-credential-cache--daemon File 3.67 MB 0755
git-credential-netrc File 10.69 KB 0755
git-credential-store File 3.67 MB 0755
git-describe File 3.67 MB 0755
git-diagnose File 3.67 MB 0755
git-diff File 3.67 MB 0755
git-diff-files File 3.67 MB 0755
git-diff-index File 3.67 MB 0755
git-diff-tree File 3.67 MB 0755
git-difftool File 3.67 MB 0755
git-difftool--helper File 2.55 KB 0755
git-fast-export File 3.67 MB 0755
git-fast-import File 3.67 MB 0755
git-fetch File 3.67 MB 0755
git-fetch-pack File 3.67 MB 0755
git-filter-branch File 15.49 KB 0755
git-fmt-merge-msg File 3.67 MB 0755
git-for-each-ref File 3.67 MB 0755
git-for-each-repo File 3.67 MB 0755
git-format-patch File 3.67 MB 0755
git-fsck File 3.67 MB 0755
git-fsck-objects File 3.67 MB 0755
git-fsmonitor--daemon File 3.67 MB 0755
git-gc File 3.67 MB 0755
git-get-tar-commit-id File 3.67 MB 0755
git-grep File 3.67 MB 0755
git-hash-object File 3.67 MB 0755
git-help File 3.67 MB 0755
git-hook File 3.67 MB 0755
git-http-backend File 2.14 MB 0755
git-http-fetch File 2.17 MB 0755
git-http-push File 2.19 MB 0755
git-imap-send File 2.19 MB 0755
git-index-pack File 3.67 MB 0755
git-init File 3.67 MB 0755
git-init-db File 3.67 MB 0755
git-interpret-trailers File 3.67 MB 0755
git-log File 3.67 MB 0755
git-ls-files File 3.67 MB 0755
git-ls-remote File 3.67 MB 0755
git-ls-tree File 3.67 MB 0755
git-mailinfo File 3.67 MB 0755
git-mailsplit File 3.67 MB 0755
git-maintenance File 3.67 MB 0755
git-merge File 3.67 MB 0755
git-merge-base File 3.67 MB 0755
git-merge-file File 3.67 MB 0755
git-merge-index File 3.67 MB 0755
git-merge-octopus File 2.42 KB 0755
git-merge-one-file File 3.61 KB 0755
git-merge-ours File 3.67 MB 0755
git-merge-recursive File 3.67 MB 0755
git-merge-resolve File 1.2 KB 0755
git-merge-subtree File 3.67 MB 0755
git-merge-tree File 3.67 MB 0755
git-mergetool File 11.42 KB 0755
git-mergetool--lib File 10.48 KB 0644
git-mktag File 3.67 MB 0755
git-mktree File 3.67 MB 0755
git-multi-pack-index File 3.67 MB 0755
git-mv File 3.67 MB 0755
git-name-rev File 3.67 MB 0755
git-notes File 3.67 MB 0755
git-pack-objects File 3.67 MB 0755
git-pack-redundant File 3.67 MB 0755
git-pack-refs File 3.67 MB 0755
git-patch-id File 3.67 MB 0755
git-prune File 3.67 MB 0755
git-prune-packed File 3.67 MB 0755
git-pull File 3.67 MB 0755
git-push File 3.67 MB 0755
git-quiltimport File 3.61 KB 0755
git-range-diff File 3.67 MB 0755
git-read-tree File 3.67 MB 0755
git-rebase File 3.67 MB 0755
git-receive-pack File 3.67 MB 0755
git-reflog File 3.67 MB 0755
git-remote File 3.67 MB 0755
git-remote-ext File 3.67 MB 0755
git-remote-fd File 3.67 MB 0755
git-remote-ftp File 2.19 MB 0755
git-remote-ftps File 2.19 MB 0755
git-remote-http File 2.19 MB 0755
git-remote-https File 2.19 MB 0755
git-repack File 3.67 MB 0755
git-replace File 3.67 MB 0755
git-request-pull File 4.05 KB 0755
git-rerere File 3.67 MB 0755
git-reset File 3.67 MB 0755
git-restore File 3.67 MB 0755
git-rev-list File 3.67 MB 0755
git-rev-parse File 3.67 MB 0755
git-revert File 3.67 MB 0755
git-rm File 3.67 MB 0755
git-send-pack File 3.67 MB 0755
git-sh-i18n File 1.64 KB 0644
git-sh-i18n--envsubst File 2.13 MB 0755
git-sh-setup File 8.2 KB 0644
git-shell File 2.13 MB 0755
git-shortlog File 3.67 MB 0755
git-show File 3.67 MB 0755
git-show-branch File 3.67 MB 0755
git-show-index File 3.67 MB 0755
git-show-ref File 3.67 MB 0755
git-sparse-checkout File 3.67 MB 0755
git-stage File 3.67 MB 0755
git-stash File 3.67 MB 0755
git-status File 3.67 MB 0755
git-stripspace File 3.67 MB 0755
git-submodule File 10.26 KB 0755
git-submodule--helper File 3.67 MB 0755
git-switch File 3.67 MB 0755
git-symbolic-ref File 3.67 MB 0755
git-tag File 3.67 MB 0755
git-unpack-file File 3.67 MB 0755
git-unpack-objects File 3.67 MB 0755
git-update-index File 3.67 MB 0755
git-update-ref File 3.67 MB 0755
git-update-server-info File 3.67 MB 0755
git-upload-archive File 3.67 MB 0755
git-upload-pack File 3.67 MB 0755
git-var File 3.67 MB 0755
git-verify-commit File 3.67 MB 0755
git-verify-pack File 3.67 MB 0755
git-verify-tag File 3.67 MB 0755
git-version File 3.67 MB 0755
git-web--browse File 4.3 KB 0755
git-whatchanged File 3.67 MB 0755
git-worktree File 3.67 MB 0755
git-write-tree File 3.67 MB 0755
scalar File 2.18 MB 0755