From: Stephen Boyd Date: Tue, 16 Jun 2009 22:33:01 GMT Subject: [PATCHv4 5/5] am, rebase: teach quiet option Message-ID: <1245191581-11127-6-git-send-email-bebarino@gmail.com> In-Reply-To: <1245191581-11127-5-git-send-email-bebarino@gmail.com> git-am and git-rebase are talkative scripts. Teach them to be quiet when told, allowing them to speak only when they fail or experience errors. The quiet option is maintained when git-am or git-rebase fails to apply a patch. This means subsequent --resolved, --continue, --skip, --abort invocations will be quiet if the original invocation was quiet. Drop a couple >&2 statements because Junio has deemed them unnecessary. Signed-off-by: Stephen Boyd --- Copied from cover letter for convenience: - say "applying to an empty history" in am.sh - quiet merge in rebase.sh::call_merge() - drop >&2 in a couple places in rebase.sh - maintain GIT_QUIET when git-am or git-rebase fails - add to git_am_opt instead of hijacking GIT_QUIET in rebase.sh I chose GIT_MERGE_VERBOSITY=1 in rebase because the resolvemsg says "correct the above error", and GIT_MERGE_VERBOSITY=0 prints nothing. I think this might be a bug, either in the documentation or in merge-recursive. At least setting it to 1 prints "CONFLICT (content): ..." This behavior was observed by passing -q to rebase in t3407. Documentation/git-am.txt | 6 ++++- Documentation/git-rebase.txt | 4 +++ git-am.sh | 26 ++++++++++++++++------ git-rebase.sh | 48 +++++++++++++++++++++++++++++++++-------- t/t3400-rebase.sh | 19 +++++++++++----- t/t4150-am.sh | 18 +++++++++++++++ 6 files changed, 97 insertions(+), 24 deletions(-) diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt index 6d92cbe..32e689b 100644 --- a/Documentation/git-am.txt +++ b/Documentation/git-am.txt @@ -13,7 +13,7 @@ SYNOPSIS [--3way] [--interactive] [--committer-date-is-author-date] [--ignore-date] [--whitespace=