summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3ddd170)
raw | patch | inline | side by side (parent: 3ddd170)
author | Stephen Boyd <bebarino@gmail.com> | |
Tue, 16 Jun 2009 22:32:59 +0000 (15:32 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 18 Jun 2009 16:50:31 +0000 (09:50 -0700) |
Scripts should use say() when they want to output non-error messages.
This function helps future script writers easily implement a quiet
option by setting GIT_QUIET to enable suppression of non-error messages.
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This function helps future script writers easily implement a quiet
option by setting GIT_QUIET to enable suppression of non-error messages.
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-sh-setup.sh | patch | blob | history |
diff --git a/git-sh-setup.sh b/git-sh-setup.sh
index 80acb7de729f2f824043b592ce110479d4334a06..c41c2f7439724adc3dd13b92c86b25d254fc23b8 100755 (executable)
--- a/git-sh-setup.sh
+++ b/git-sh-setup.sh
exit 1
}
+GIT_QUIET=
+
+say () {
+ if test -z "$GIT_QUIET"
+ then
+ printf '%s\n' "$*"
+ fi
+}
+
if test -n "$OPTIONS_SPEC"; then
usage() {
"$0" -h