diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-06-28 12:05:34 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-06-28 22:13:18 +0200 |
commit | 5b893f7d81eb7feb43662ed8663e2af76a76b4c8 (patch) | |
tree | e2cbaa81e931b33ea0db8034701c004fe1bd0506 /git-sh-setup.sh | |
parent | git-submodule.sh: use "$quiet", not "$GIT_QUIET" (diff) | |
download | git-5b893f7d81eb7feb43662ed8663e2af76a76b4c8.tar.xz git-5b893f7d81eb7feb43662ed8663e2af76a76b4c8.zip |
git-sh-setup.sh: remove "say" function, change last users
Remove the "say" function, with various rewrites of the remaining
git-*.sh code to C and the preceding change to have git-submodule.sh
stop using the GIT_QUIET variable there were only four uses in
git-subtree.sh. Let's have it use an "arg_quiet" variable instead, and
move the "say" function over to it.
The only other use was a trivial message in git-instaweb.sh, since it
has never supported the --quiet option (or similar) that code added in
0b624b4ceee (instaweb: restart server if already running, 2009-11-22)
can simply use "echo" instead.
The remaining in-tree hits from "say" are all for the sibling function
defined in t/test-lib.sh. It's safe to remove this function since it
has never been documented in Documentation/git-sh-setup.txt.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-sh-setup.sh')
-rw-r--r-- | git-sh-setup.sh | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/git-sh-setup.sh b/git-sh-setup.sh index ecb60d9e3c..ce273fe0e4 100644 --- a/git-sh-setup.sh +++ b/git-sh-setup.sh @@ -57,15 +57,6 @@ die_with_status () { exit "$status" } -GIT_QUIET= - -say () { - if test -z "$GIT_QUIET" - then - printf '%s\n' "$*" - fi -} - if test -n "$OPTIONS_SPEC"; then usage() { "$0" -h |