PATH:
usr
/
libexec
/
git-core
#!/bin/sh # # Copyright (c) 2010 Ævar Arnfjörð Bjarmason # # This is Git's interface to gettext.sh. See po/README for usage # instructions. # Export the TEXTDOMAIN* data that we need for Git TEXTDOMAIN=git export TEXTDOMAIN if test -z "$GIT_TEXTDOMAINDIR" then TEXTDOMAINDIR="/usr/share/locale" else TEXTDOMAINDIR="$GIT_TEXTDOMAINDIR" fi export TEXTDOMAINDIR # First decide what scheme to use... GIT_INTERNAL_GETTEXT_SH_SCHEME=fallthrough if test -n "" then GIT_INTERNAL_GETTEXT_SH_SCHEME="" elif test -n "$GIT_INTERNAL_GETTEXT_TEST_FALLBACKS" then : no probing necessary elif test -n "$GIT_GETTEXT_POISON" then GIT_INTERNAL_GETTEXT_SH_SCHEME=poison elif type gettext.sh >/dev/null 2>&1 then # GNU libintl's gettext.sh GIT_INTERNAL_GETTEXT_SH_SCHEME=gnu elif test "$(gettext -h 2>&1)" = "-h" then # gettext binary exists but no gettext.sh. likely to be a gettext # binary on a Solaris or something that is not GNU libintl and # lack eval_gettext. GIT_INTERNAL_GETTEXT_SH_SCHEME=gettext_without_eval_gettext fi export GIT_INTERNAL_GETTEXT_SH_SCHEME # ... and then follow that decision. case "$GIT_INTERNAL_GETTEXT_SH_SCHEME" in gnu) # Use libintl's gettext.sh, or fall back to English if we can't. . gettext.sh ;; gettext_without_eval_gettext) # Solaris has a gettext(1) but no eval_gettext(1) eval_gettext () { gettext "$1" | ( export PATH $(git sh-i18n--envsubst --variables "$1"); git sh-i18n--envsubst "$1" ) } ;; poison) # Emit garbage so that tests that incorrectly rely on translatable # strings will fail. gettext () { printf "%s" "# GETTEXT POISON #" } eval_gettext () { printf "%s" "# GETTEXT POISON #" } ;; *) gettext () { printf "%s" "$1" } eval_gettext () { printf "%s" "$1" | ( export PATH $(git sh-i18n--envsubst --variables "$1"); git sh-i18n--envsubst "$1" ) } ;; esac # Git-specific wrapper functions gettextln () { gettext "$1" echo } eval_gettextln () { eval_gettext "$1" echo }
[+]
..
[-] git-sh-setup
[edit]
[-] git-bisect--helper
[edit]
[-] git-check-attr
[edit]
[-] git-show
[edit]
[-] git-receive-pack
[edit]
[-] git-bundle
[edit]
[-] git-config
[edit]
[-] git-merge-recursive
[edit]
[-] git-imap-send
[edit]
[-] git-remote-testpy
[edit]
[-] git-revert
[edit]
[-] git-mergetool
[edit]
[-] git-rev-parse
[edit]
[-] git-sh-i18n--envsubst
[edit]
[-] git-fast-export
[edit]
[-] git-fmt-merge-msg
[edit]
[-] git-whatchanged
[edit]
[-] git-submodule--helper
[edit]
[-] git-reflog
[edit]
[-] git-column
[edit]
[-] git-prune-packed
[edit]
[-] git-credential-cache
[edit]
[-] git-upload-pack
[edit]
[-] git
[edit]
[-] git-remote-http
[edit]
[-] git-difftool
[edit]
[-] git-request-pull
[edit]
[-] git-merge-subtree
[edit]
[-] git-parse-remote
[edit]
[-] git-fetch-pack
[edit]
[-] git-send-pack
[edit]
[-] git-diff-index
[edit]
[-] git-cherry
[edit]
[-] git-ls-files
[edit]
[-] git-show-index
[edit]
[-] git-unpack-objects
[edit]
[-] git-write-tree
[edit]
[-] git-upload-archive
[edit]
[-] git-merge-index
[edit]
[-] git-gc
[edit]
[-] git-init-db
[edit]
[-] git-diff
[edit]
[-] git-credential
[edit]
[-] git-notes
[edit]
[-] git-for-each-ref
[edit]
[-] git-symbolic-ref
[edit]
[-] git-diff-files
[edit]
[-] git-fetch
[edit]
[-] git-merge-tree
[edit]
[-] git-update-index
[edit]
[-] git-diff-tree
[edit]
[-] git-commit
[edit]
[-] git-tag
[edit]
[-] git-cat-file
[edit]
[-] git-remote-fd
[edit]
[-] git-rebase--merge
[edit]
[-] git-bisect
[edit]
[-] git-sh-i18n
[edit]
[-] git-cherry-pick
[edit]
[-] git-checkout-index
[edit]
[-] git-credential-store
[edit]
[-] git-annotate
[edit]
[-] git-stage
[edit]
[-] git-remote-https
[edit]
[-] git-patch-id
[edit]
[-] git-branch
[edit]
[-] git-var
[edit]
[-] git-rm
[edit]
[-] git-help
[edit]
[-] git-commit-tree
[edit]
[-] git-merge
[edit]
[-] git-reset
[edit]
[-] git-stripspace
[edit]
[-] git-pack-refs
[edit]
[-] git-lost-found
[edit]
[-] git-show-ref
[edit]
[-] git-update-server-info
[edit]
[-] git-check-ignore
[edit]
[-] git-am
[edit]
[-] git-check-ref-format
[edit]
[-] git-hash-object
[edit]
[-] git-ls-tree
[edit]
[-] git-apply
[edit]
[-] git-format-patch
[edit]
[-] git-verify-tag
[edit]
[-] git-fsck-objects
[edit]
[-] git-tar-tree
[edit]
[-] git-read-tree
[edit]
[-] git-update-ref
[edit]
[-] git-count-objects
[edit]
[-] git-fast-import
[edit]
[-] git-mergetool--lib
[edit]
[-] git-push
[edit]
[-] git-subtree
[edit]
[-] git-rebase--am
[edit]
[-] git-merge-ours
[edit]
[-] git-remote-ftps
[edit]
[-] git-blame
[edit]
[-] git-init
[edit]
[-] git-merge-one-file
[edit]
[-] git-show-branch
[edit]
[-] git-clone
[edit]
[-] git-rebase
[edit]
[-] git-remote
[edit]
[-] git-rerere
[edit]
[-] git-ls-remote
[edit]
[-] git-merge-resolve
[edit]
[-] git-rev-list
[edit]
[-] git-pack-objects
[edit]
[-] git-fsck
[edit]
[-] git-rebase--interactive
[edit]
[-] git-mv
[edit]
[-] git-unpack-file
[edit]
[-] git-http-fetch
[edit]
[-] git-shell
[edit]
[-] git-status
[edit]
[-] git-shortlog
[edit]
[-] git-verify-pack
[edit]
[-] git-name-rev
[edit]
[+]
mergetools
[-] git-merge-file
[edit]
[-] git-web--browse
[edit]
[-] git-remote-ext
[edit]
[-] git-grep
[edit]
[-] git-mktree
[edit]
[-] git-credential-cache--daemon
[edit]
[-] git-stash
[edit]
[-] git-add--interactive
[edit]
[-] git-checkout
[edit]
[-] git-pull
[edit]
[-] git-replace
[edit]
[-] git-merge-octopus
[edit]
[-] git-mailsplit
[edit]
[-] git-clean
[edit]
[-] git-repack
[edit]
[-] git-add
[edit]
[-] git-peek-remote
[edit]
[-] git-http-push
[edit]
[-] git-log
[edit]
[-] git-prune
[edit]
[-] git-get-tar-commit-id
[edit]
[-] git-repo-config
[edit]
[-] git-mktag
[edit]
[-] git-http-backend
[edit]
[-] git-index-pack
[edit]
[-] git-difftool--helper
[edit]
[-] git-submodule
[edit]
[-] git-relink
[edit]
[-] git-remote-ftp
[edit]
[-] git-merge-base
[edit]
[-] git-describe
[edit]
[-] git-filter-branch
[edit]
[-] git-mailinfo
[edit]
[-] git-archive
[edit]
[-] git-pack-redundant
[edit]
[-] git-quiltimport
[edit]