Skip to content

Teach shell scripts to be quiet

Stephen Boyd git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 5 repliesIn review

Changes in v2 from the cover letter

- introduction of say()
- migration of submodule and repack

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3git-sh-setup: introduce say() for quiet optionsgit-sh-setup.sh+7 -05 replies
2/3submodule, repack: migrate to git-sh-setup's say()git-repack.sh git-submodule.sh+11 -250 replies
3/3am, rebase: teach quiet optionDocumentation/git-am.txt Documentation/git-rebase.txt git-am.sh +3 more+64 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/3] Teach shell scripts to be quiet

The main goal of this is to teach git-am and git-rebase to be quiet. To do that, I've implemented a generic say function in git-sh-setup so that script writers can implement a quiet option by setting GIT_QUIET and using say instead of echo.

git-stash is still left out, but hopefully this makes that easier for someone else later.

Changes since v1:
- introduction of say()
- migration of submodule and repack

Stephen Boyd (3):
git-sh-setup: introduce say() for quiet options submodule, repack: migrate to git-sh-setup's say() am, rebase: teach quiet option

 Documentation/git-am.txt     |    6 +++++-
 Documentation/git-rebase.txt |    4 ++++
 git-am.sh                    |   17 ++++++++++++-----
 git-rebase.sh                |   40 +++++++++++++++++++++++++++++-----------
 git-repack.sh                |   12 +++++-------
 git-sh-setup.sh              |    7 +++++++
 git-submodule.sh             |   24 ++++++------------------
 t/t3400-rebase.sh            |    7 +++++++
 t/t4150-am.sh                |    7 +++++++
 9 files changed, 82 insertions(+), 42 deletions(-)