/snap/gh/640/usr/lib/git-core
NameSizeModeActions
mergetools/-0755rm
git40662320755editdlrm
git-add40662320755editdlrm
git-am40662320755editdlrm
git-annotate40662320755editdlrm
git-apply40662320755editdlrm
git-archive40662320755editdlrm
git-bisect40662320755editdlrm
git-blame40662320755editdlrm
git-branch40662320755editdlrm
git-bugreport40662320755editdlrm
git-bundle40662320755editdlrm
git-cat-file40662320755editdlrm
git-check-attr40662320755editdlrm
git-check-ignore40662320755editdlrm
git-check-mailmap40662320755editdlrm
git-check-ref-format40662320755editdlrm
git-checkout40662320755editdlrm
git-checkout--worker40662320755editdlrm
git-checkout-index40662320755editdlrm
git-cherry40662320755editdlrm
git-cherry-pick40662320755editdlrm
git-clean40662320755editdlrm
git-clone40662320755editdlrm
git-column40662320755editdlrm
git-commit40662320755editdlrm
git-commit-graph40662320755editdlrm
git-commit-tree40662320755editdlrm
git-config40662320755editdlrm
git-count-objects40662320755editdlrm
git-credential40662320755editdlrm
git-credential-cache40662320755editdlrm
git-credential-cache--daemon40662320755editdlrm
git-credential-store40662320755editdlrm
git-daemon6607120755editdlrm
git-describe40662320755editdlrm
git-diagnose40662320755editdlrm
git-diff40662320755editdlrm
git-diff-files40662320755editdlrm
git-diff-index40662320755editdlrm
git-diff-tree40662320755editdlrm
git-difftool40662320755editdlrm
git-difftool--helper26090755editdlrm
git-fast-export40662320755editdlrm
git-fast-import40662320755editdlrm
git-fetch40662320755editdlrm
git-fetch-pack40662320755editdlrm
git-filter-branch158570755editdlrm
git-fmt-merge-msg40662320755editdlrm
git-for-each-ref40662320755editdlrm
git-for-each-repo40662320755editdlrm
git-format-patch40662320755editdlrm
git-fsck40662320755editdlrm
git-fsck-objects40662320755editdlrm
git-fsmonitor--daemon40662320755editdlrm
git-gc40662320755editdlrm
git-get-tar-commit-id40662320755editdlrm
git-grep40662320755editdlrm
git-hash-object40662320755editdlrm
git-help40662320755editdlrm
git-hook40662320755editdlrm
git-http-backend6609280755editdlrm
git-http-fetch7400000755editdlrm
git-http-push10994880755editdlrm
git-imap-send7192000755editdlrm
git-index-pack40662320755editdlrm
git-init40662320755editdlrm
git-init-db40662320755editdlrm
git-instaweb221610755editdlrm
git-interpret-trailers40662320755editdlrm
git-log40662320755editdlrm
git-ls-files40662320755editdlrm
git-ls-remote40662320755editdlrm
git-ls-tree40662320755editdlrm
git-mailinfo40662320755editdlrm
git-mailsplit40662320755editdlrm
git-maintenance40662320755editdlrm
git-merge40662320755editdlrm
git-merge-base40662320755editdlrm
git-merge-file40662320755editdlrm
git-merge-index40662320755editdlrm
git-merge-octopus24770755editdlrm
git-merge-one-file36950755editdlrm
git-merge-ours40662320755editdlrm
git-merge-recursive40662320755editdlrm
git-merge-resolve12260755editdlrm
git-merge-subtree40662320755editdlrm
git-merge-tree40662320755editdlrm
git-mergetool116930755editdlrm
git-mergetool--lib107280644editdlrm
git-mktag40662320755editdlrm
git-mktree40662320755editdlrm
git-multi-pack-index40662320755editdlrm
git-mv40662320755editdlrm
git-name-rev40662320755editdlrm
git-notes40662320755editdlrm
git-pack-objects40662320755editdlrm
git-pack-redundant40662320755editdlrm
git-pack-refs40662320755editdlrm
git-patch-id40662320755editdlrm
git-prune40662320755editdlrm
git-prune-packed40662320755editdlrm
git-pull40662320755editdlrm
git-push40662320755editdlrm
git-quiltimport36930755editdlrm
git-range-diff40662320755editdlrm
git-read-tree40662320755editdlrm
git-rebase40662320755editdlrm
git-receive-pack40662320755editdlrm
git-reflog40662320755editdlrm
git-remote40662320755editdlrm
git-remote-ext40662320755editdlrm
git-remote-fd40662320755editdlrm
git-remote-ftp7732800755editdlrm
git-remote-ftps7732800755editdlrm
git-remote-http7732800755editdlrm
git-remote-https7732800755editdlrm
git-repack40662320755editdlrm
git-replace40662320755editdlrm
git-request-pull41470755editdlrm
git-rerere40662320755editdlrm
git-reset40662320755editdlrm
git-restore40662320755editdlrm
git-rev-list40662320755editdlrm
git-rev-parse40662320755editdlrm
git-revert40662320755editdlrm
git-rm40662320755editdlrm
git-send-pack40662320755editdlrm
git-sh-i18n16830644editdlrm
git-sh-i18n--envsubst6397200755editdlrm
git-sh-prompt183720644editdlrm
git-sh-setup83980644editdlrm
git-shell6398080755editdlrm
git-shortlog40662320755editdlrm
git-show40662320755editdlrm
git-show-branch40662320755editdlrm
git-show-index40662320755editdlrm
git-show-ref40662320755editdlrm
git-sparse-checkout40662320755editdlrm
git-stage40662320755editdlrm
git-stash40662320755editdlrm
git-status40662320755editdlrm
git-stripspace40662320755editdlrm
git-submodule105080755editdlrm
git-submodule--helper40662320755editdlrm
git-subtree250190755editdlrm
git-switch40662320755editdlrm
git-symbolic-ref40662320755editdlrm
git-tag40662320755editdlrm
git-unpack-file40662320755editdlrm
git-unpack-objects40662320755editdlrm
git-update-index40662320755editdlrm
git-update-ref40662320755editdlrm
git-update-server-info40662320755editdlrm
git-upload-archive40662320755editdlrm
git-upload-pack40662320755editdlrm
git-var40662320755editdlrm
git-verify-commit40662320755editdlrm
git-verify-pack40662320755editdlrm
git-verify-tag40662320755editdlrm
git-version40662320755editdlrm
git-web--browse44010755editdlrm
git-whatchanged40662320755editdlrm
git-worktree40662320755editdlrm
git-write-tree40662320755editdlrm
scalar6849920755editdlrm
Edit: /snap/gh/640/usr/lib/git-core/git-request-pull (4147B)
#!/bin/sh # Copyright 2005, Ryan Anderson # # 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 () { 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\|SSH\|SIGNED\) /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