/
usr
/
lib
/
git-core
/
/usr/lib/git-core
mkdir
upload
Name
Size
Mode
Actions
mergetools/
-
0755
rm
git
3710360
0755
edit
dl
rm
git-add
3710360
0755
edit
dl
rm
git-add--interactive
47770
0755
edit
dl
rm
git-am
3710360
0755
edit
dl
rm
git-annotate
3710360
0755
edit
dl
rm
git-apply
3710360
0755
edit
dl
rm
git-archive
3710360
0755
edit
dl
rm
git-bisect
2137
0755
edit
dl
rm
git-bisect--helper
3710360
0755
edit
dl
rm
git-blame
3710360
0755
edit
dl
rm
git-branch
3710360
0755
edit
dl
rm
git-bugreport
3710360
0755
edit
dl
rm
git-bundle
3710360
0755
edit
dl
rm
git-cat-file
3710360
0755
edit
dl
rm
git-check-attr
3710360
0755
edit
dl
rm
git-check-ignore
3710360
0755
edit
dl
rm
git-check-mailmap
3710360
0755
edit
dl
rm
git-check-ref-format
3710360
0755
edit
dl
rm
git-checkout
3710360
0755
edit
dl
rm
git-checkout--worker
3710360
0755
edit
dl
rm
git-checkout-index
3710360
0755
edit
dl
rm
git-cherry
3710360
0755
edit
dl
rm
git-cherry-pick
3710360
0755
edit
dl
rm
git-clean
3710360
0755
edit
dl
rm
git-clone
3710360
0755
edit
dl
rm
git-column
3710360
0755
edit
dl
rm
git-commit
3710360
0755
edit
dl
rm
git-commit-graph
3710360
0755
edit
dl
rm
git-commit-tree
3710360
0755
edit
dl
rm
git-config
3710360
0755
edit
dl
rm
git-count-objects
3710360
0755
edit
dl
rm
git-credential
3710360
0755
edit
dl
rm
git-credential-cache
3710360
0755
edit
dl
rm
git-credential-cache--daemon
3710360
0755
edit
dl
rm
git-credential-store
3710360
0755
edit
dl
rm
git-daemon
594624
0755
edit
dl
rm
git-describe
3710360
0755
edit
dl
rm
git-diff
3710360
0755
edit
dl
rm
git-diff-files
3710360
0755
edit
dl
rm
git-diff-index
3710360
0755
edit
dl
rm
git-diff-tree
3710360
0755
edit
dl
rm
git-difftool
3710360
0755
edit
dl
rm
git-difftool--helper
2503
0755
edit
dl
rm
git-env--helper
3710360
0755
edit
dl
rm
git-fast-export
3710360
0755
edit
dl
rm
git-fast-import
3710360
0755
edit
dl
rm
git-fetch
3710360
0755
edit
dl
rm
git-fetch-pack
3710360
0755
edit
dl
rm
git-filter-branch
15862
0755
edit
dl
rm
git-fmt-merge-msg
3710360
0755
edit
dl
rm
git-for-each-ref
3710360
0755
edit
dl
rm
git-for-each-repo
3710360
0755
edit
dl
rm
git-format-patch
3710360
0755
edit
dl
rm
git-fsck
3710360
0755
edit
dl
rm
git-fsck-objects
3710360
0755
edit
dl
rm
git-gc
3710360
0755
edit
dl
rm
git-get-tar-commit-id
3710360
0755
edit
dl
rm
git-grep
3710360
0755
edit
dl
rm
git-hash-object
3710360
0755
edit
dl
rm
git-help
3710360
0755
edit
dl
rm
git-http-backend
594888
0755
edit
dl
rm
git-http-fetch
657376
0755
edit
dl
rm
git-http-push
1004000
0755
edit
dl
rm
git-imap-send
640744
0755
edit
dl
rm
git-index-pack
3710360
0755
edit
dl
rm
git-init
3710360
0755
edit
dl
rm
git-init-db
3710360
0755
edit
dl
rm
git-instaweb
22362
0755
edit
dl
rm
git-interpret-trailers
3710360
0755
edit
dl
rm
git-log
3710360
0755
edit
dl
rm
git-ls-files
3710360
0755
edit
dl
rm
git-ls-remote
3710360
0755
edit
dl
rm
git-ls-tree
3710360
0755
edit
dl
rm
git-mailinfo
3710360
0755
edit
dl
rm
git-mailsplit
3710360
0755
edit
dl
rm
git-maintenance
3710360
0755
edit
dl
rm
git-merge
3710360
0755
edit
dl
rm
git-merge-base
3710360
0755
edit
dl
rm
git-merge-file
3710360
0755
edit
dl
rm
git-merge-index
3710360
0755
edit
dl
rm
git-merge-octopus
2477
0755
edit
dl
rm
git-merge-one-file
3695
0755
edit
dl
rm
git-merge-ours
3710360
0755
edit
dl
rm
git-merge-recursive
3710360
0755
edit
dl
rm
git-merge-resolve
944
0755
edit
dl
rm
git-merge-subtree
3710360
0755
edit
dl
rm
git-merge-tree
3710360
0755
edit
dl
rm
git-mergetool
11564
0755
edit
dl
rm
git-mergetool--lib
9772
0644
edit
dl
rm
git-mktag
3710360
0755
edit
dl
rm
git-mktree
3710360
0755
edit
dl
rm
git-multi-pack-index
3710360
0755
edit
dl
rm
git-mv
3710360
0755
edit
dl
rm
git-name-rev
3710360
0755
edit
dl
rm
git-notes
3710360
0755
edit
dl
rm
git-pack-objects
3710360
0755
edit
dl
rm
git-pack-redundant
3710360
0755
edit
dl
rm
git-pack-refs
3710360
0755
edit
dl
rm
git-patch-id
3710360
0755
edit
dl
rm
git-prune
3710360
0755
edit
dl
rm
git-prune-packed
3710360
0755
edit
dl
rm
git-pull
3710360
0755
edit
dl
rm
git-push
3710360
0755
edit
dl
rm
git-quiltimport
3693
0755
edit
dl
rm
git-range-diff
3710360
0755
edit
dl
rm
git-read-tree
3710360
0755
edit
dl
rm
git-rebase
3710360
0755
edit
dl
rm
git-receive-pack
3710360
0755
edit
dl
rm
git-reflog
3710360
0755
edit
dl
rm
git-remote
3710360
0755
edit
dl
rm
git-remote-ext
3710360
0755
edit
dl
rm
git-remote-fd
3710360
0755
edit
dl
rm
git-remote-ftp
690544
0755
edit
dl
rm
git-remote-ftps
690544
0755
edit
dl
rm
git-remote-http
690544
0755
edit
dl
rm
git-remote-https
690544
0755
edit
dl
rm
git-repack
3710360
0755
edit
dl
rm
git-replace
3710360
0755
edit
dl
rm
git-request-pull
4130
0755
edit
dl
rm
git-rerere
3710360
0755
edit
dl
rm
git-reset
3710360
0755
edit
dl
rm
git-restore
3710360
0755
edit
dl
rm
git-rev-list
3710360
0755
edit
dl
rm
git-rev-parse
3710360
0755
edit
dl
rm
git-revert
3710360
0755
edit
dl
rm
git-rm
3710360
0755
edit
dl
rm
git-send-pack
3710360
0755
edit
dl
rm
git-sh-i18n
1683
0644
edit
dl
rm
git-sh-i18n--envsubst
565696
0755
edit
dl
rm
git-sh-prompt
17781
0644
edit
dl
rm
git-sh-setup
8877
0644
edit
dl
rm
git-shell
565840
0755
edit
dl
rm
git-shortlog
3710360
0755
edit
dl
rm
git-show
3710360
0755
edit
dl
rm
git-show-branch
3710360
0755
edit
dl
rm
git-show-index
3710360
0755
edit
dl
rm
git-show-ref
3710360
0755
edit
dl
rm
git-sparse-checkout
3710360
0755
edit
dl
rm
git-stage
3710360
0755
edit
dl
rm
git-stash
3710360
0755
edit
dl
rm
git-status
3710360
0755
edit
dl
rm
git-stripspace
3710360
0755
edit
dl
rm
git-submodule
14102
0755
edit
dl
rm
git-submodule--helper
3710360
0755
edit
dl
rm
git-subtree
23570
0755
edit
dl
rm
git-switch
3710360
0755
edit
dl
rm
git-symbolic-ref
3710360
0755
edit
dl
rm
git-tag
3710360
0755
edit
dl
rm
git-unpack-file
3710360
0755
edit
dl
rm
git-unpack-objects
3710360
0755
edit
dl
rm
git-update-index
3710360
0755
edit
dl
rm
git-update-ref
3710360
0755
edit
dl
rm
git-update-server-info
3710360
0755
edit
dl
rm
git-upload-archive
3710360
0755
edit
dl
rm
git-upload-pack
3710360
0755
edit
dl
rm
git-var
3710360
0755
edit
dl
rm
git-verify-commit
3710360
0755
edit
dl
rm
git-verify-pack
3710360
0755
edit
dl
rm
git-verify-tag
3710360
0755
edit
dl
rm
git-web--browse
4401
0755
edit
dl
rm
git-whatchanged
3710360
0755
edit
dl
rm
git-worktree
3710360
0755
edit
dl
rm
git-write-tree
3710360
0755
edit
dl
rm
Edit:
/usr/lib/git-core/git-request-pull
(4130B)
#!/bin/sh # Copyright 2005, Ryan Anderson <ryan@michonline.com> # # This file is licensed under the GPL v2, or a later version # at the discretion of Linus Torvalds. SUBDIRECTORY_OK='Yes' OPTIONS_KEEPDASHDASH= OPTIONS_STUCKLONG= OPTIONS_SPEC='git request-pull [options] start url [end] -- p show patch text as well ' . git-sh-setup GIT_PAGER= export GIT_PAGER patch= while case "$#" in 0) break ;; esac do case "$1" in -p) patch=-p ;; --) shift; break ;; -*) usage ;; *) break ;; esac shift done base=$1 url=$2 status=0 test -n "$base" && test -n "$url" || usage baserev=$(git rev-parse --verify --quiet "$base"^0) if test -z "$baserev" then die "fatal: Not a valid revision: $base" fi # # $3 must be a symbolic ref, a unique ref, or # a SHA object expression. It can also be of # the format 'local-name:remote-name'. # local=${3%:*} local=${local:-HEAD} remote=${3#*:} pretty_remote=${remote#refs/} pretty_remote=${pretty_remote#heads/} head=$(git symbolic-ref -q "$local") head=${head:-$(git show-ref --heads --tags "$local" | cut -d' ' -f2)} head=${head:-$(git rev-parse --quiet --verify "$local")} # None of the above? Bad. test -z "$head" && die "fatal: Not a valid revision: $local" # This also verifies that the resulting head is unique: # "git show-ref" could have shown multiple matching refs.. headrev=$(git rev-parse --verify --quiet "$head"^0) test -z "$headrev" && die "fatal: Ambiguous revision: $local" local_sha1=$(git rev-parse --verify --quiet "$head") # Was it a branch with a description? branch_name=${head#refs/heads/} if test "z$branch_name" = "z$headref" || ! git config "branch.$branch_name.description" >/dev/null then branch_name= fi merge_base=$(git merge-base $baserev $headrev) || die "fatal: No commits in common between $base and $head" # $head is the refname from the command line. # Find a ref with the same name as $head that exists at the remote # and points to the same commit as the local object. find_matching_ref=' my ($head,$headrev) = (@ARGV); my $pattern = qr{/\Q$head\E$}; my ($remote_sha1, $found); while (<STDIN>) { chomp; my ($sha1, $ref, $deref) = /^(\S+)\s+([^^]+)(\S*)$/; if ($sha1 eq $head) { $found = $remote_sha1 = $sha1; break; } if ($ref eq $head || $ref =~ $pattern) { if ($deref eq "") { # Remember the matching object on the remote side $remote_sha1 = $sha1; } if ($sha1 eq $headrev) { $found = $ref; break; } } } if ($found) { $remote_sha1 = $headrev if ! defined $remote_sha1; print "$remote_sha1 $found\n"; } ' set fnord $(git ls-remote "$url" | /usr/bin/perl -e "$find_matching_ref" "${remote:-HEAD}" "$headrev") remote_sha1=$2 ref=$3 if test -z "$ref" then echo "warn: No match for commit $headrev found at $url" >&2 echo "warn: Are you sure you pushed '${remote:-HEAD}' there?" >&2 status=1 elif test "$local_sha1" != "$remote_sha1" then echo "warn: $head found at $url but points to a different object" >&2 echo "warn: Are you sure you pushed '${remote:-HEAD}' there?" >&2 status=1 fi # Special case: turn "for_linus" to "tags/for_linus" when it is correct if test "$ref" = "refs/tags/$pretty_remote" then pretty_remote=tags/$pretty_remote fi url=$(git ls-remote --get-url "$url") git show -s --format='The following changes since commit %H: %s (%ci) are available in the Git repository at: ' $merge_base && echo " $url $pretty_remote" && git show -s --format=' for you to fetch changes up to %H: %s (%ci) ----------------------------------------------------------------' $headrev && if test $(git cat-file -t "$head") = tag then git cat-file tag "$head" | sed -n -e '1,/^$/d' -e '/^-----BEGIN PGP /q' -e p echo echo "----------------------------------------------------------------" fi && if test -n "$branch_name" then echo "(from the branch description for $branch_name local branch)" echo git config "branch.$branch_name.description" echo "----------------------------------------------------------------" fi && git shortlog ^$baserev $headrev && git diff -M --stat --summary $patch $merge_base..$headrev || status=1 exit $status
Save
cmd:
run