summaryrefslogtreecommitdiff
path: root/git-sh-setup.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-07-02 02:40:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-07-02 02:40:50 (GMT)
commite6c7c2cc9766434607b8da5db872e7881a043925 (patch)
treeab967dcf2cedf2f9f63d54e12adc1ca046e4edc2 /git-sh-setup.sh
parent4197195bee15f120e99d797b22108fd274235fd7 (diff)
parentfcdd0e92d9d42b8fa4569d92ba1013bb0eedfcd8 (diff)
downloadgit-e6c7c2cc9766434607b8da5db872e7881a043925.zip
git-e6c7c2cc9766434607b8da5db872e7881a043925.tar.gz
git-e6c7c2cc9766434607b8da5db872e7881a043925.tar.bz2
Merge branch 'sb/quiet-porcelains'
* sb/quiet-porcelains: stash: teach quiet option am, rebase: teach quiet option submodule, repack: migrate to git-sh-setup's say() git-sh-setup: introduce say() for quiet options am: suppress apply errors when using 3-way t4150: test applying with a newline in subject
Diffstat (limited to 'git-sh-setup.sh')
-rwxr-xr-xgit-sh-setup.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/git-sh-setup.sh b/git-sh-setup.sh
index 80acb7d..c41c2f7 100755
--- a/git-sh-setup.sh
+++ b/git-sh-setup.sh
@@ -44,6 +44,15 @@ die() {
exit 1
}
+GIT_QUIET=
+
+say () {
+ if test -z "$GIT_QUIET"
+ then
+ printf '%s\n' "$*"
+ fi
+}
+
if test -n "$OPTIONS_SPEC"; then
usage() {
"$0" -h