/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-web--browse (4401B)
#!/bin/sh # # This program launch a web browser on the html page # describing a git command. # # Copyright (c) 2007 Christian Couder # Copyright (c) 2006 Theodore Y. Ts'o # # This file is heavily stolen from git-mergetool.sh, by # Theodore Y. Ts'o (thanks) that is: # # Copyright (c) 2006 Theodore Y. Ts'o # # This file is licensed under the GPL v2, or a later version # at the discretion of Junio C Hamano or any other official # git maintainer. # USAGE='[--browser=browser|--tool=browser] [--config=conf.var] url/file ...' # This must be capable of running outside of git directory, so # the vanilla git-sh-setup should not be used. NONGIT_OK=Yes . git-sh-setup valid_custom_tool() { browser_cmd="$(git config "browser.$1.cmd")" test -n "$browser_cmd" } valid_tool() { case "$1" in firefox | iceweasel | seamonkey | iceape | \ chrome | google-chrome | chromium | chromium-browser | \ konqueror | opera | w3m | elinks | links | lynx | dillo | open | \ start | cygstart | xdg-open) ;; # happy *) valid_custom_tool "$1" || return 1 ;; esac } init_browser_path() { browser_path=$(git config "browser.$1.path") if test -z "$browser_path" && test "$1" = chromium && type chromium-browser >/dev/null 2>&1 then browser_path=chromium-browser fi : ${browser_path:="$1"} } while test $# != 0 do case "$1" in -b|--browser*|-t|--tool*) case "$#,$1" in *,*=*) browser=$(expr "z$1" : 'z-[^=]*=\(.*\)') ;; 1,*) usage ;; *) browser="$2" shift ;; esac ;; -c|--config*) case "$#,$1" in *,*=*) conf=$(expr "z$1" : 'z-[^=]*=\(.*\)') ;; 1,*) usage ;; *) conf="$2" shift ;; esac ;; --) break ;; -*) usage ;; *) break ;; esac shift done test $# = 0 && usage if test -z "$browser" then for opt in "$conf" "web.browser" do test -z "$opt" && continue browser="$(git config $opt)" test -z "$browser" || break done if test -n "$browser" && ! valid_tool "$browser"; then echo >&2 "git config option $opt set to unknown browser: $browser" echo >&2 "Resetting to default..." unset browser fi fi if test -z "$browser" ; then if test -n "$DISPLAY"; then browser_candidates="firefox iceweasel google-chrome chrome chromium chromium-browser konqueror opera seamonkey iceape w3m elinks links lynx dillo xdg-open" if test "$KDE_FULL_SESSION" = "true"; then browser_candidates="konqueror $browser_candidates" fi else browser_candidates="w3m elinks links lynx" fi # SECURITYSESSIONID indicates an OS X GUI login session if test -n "$SECURITYSESSIONID" || test -n "$TERM_PROGRAM" then browser_candidates="open $browser_candidates" fi # /bin/start indicates MinGW if test -x /bin/start; then browser_candidates="start $browser_candidates" fi # /usr/bin/cygstart indicates Cygwin if test -x /usr/bin/cygstart; then browser_candidates="cygstart $browser_candidates" fi for i in $browser_candidates; do init_browser_path $i if type "$browser_path" > /dev/null 2>&1; then browser=$i break fi done test -z "$browser" && die "No known browser available." else valid_tool "$browser" || die "Unknown browser '$browser'." init_browser_path "$browser" if test -z "$browser_cmd" && ! type "$browser_path" > /dev/null 2>&1; then die "The browser $browser is not available as '$browser_path'." fi fi case "$browser" in firefox|iceweasel|seamonkey|iceape) # Check version because firefox < 2.0 does not support "-new-tab". vers=$(expr "$($browser_path -version)" : '.* \([0-9][0-9]*\)\..*') NEWTAB='-new-tab' test "$vers" -lt 2 && NEWTAB='' "$browser_path" $NEWTAB "$@" & ;; google-chrome|chrome|chromium|chromium-browser) # No need to specify newTab. It's default in chromium "$browser_path" "$@" & ;; konqueror) case "$(basename "$browser_path")" in konqueror) # It's simpler to use kfmclient to open a new tab in konqueror. browser_path="$(echo "$browser_path" | sed -e 's/konqueror$/kfmclient/')" type "$browser_path" > /dev/null 2>&1 || die "No '$browser_path' found." "$browser_path" newTab "$@" & ;; kfmclient) "$browser_path" newTab "$@" & ;; *) "$browser_path" "$@" & ;; esac ;; w3m|elinks|links|lynx|open|cygstart|xdg-open) "$browser_path" "$@" ;; start) exec "$browser_path" '"web-browse"' "$@" ;; opera|dillo) "$browser_path" "$@" & ;; *) if test -n "$browser_cmd"; then ( eval "$browser_cmd \"\$@\"" ) fi ;; esac