From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Boyd Subject: [PATCHv3 4/4] am, rebase: teach quiet option Date: Mon, 15 Jun 2009 19:05:05 -0700 Message-ID: <1245117905-19351-5-git-send-email-bebarino@gmail.com> References: <1245117905-19351-1-git-send-email-bebarino@gmail.com> <1245117905-19351-2-git-send-email-bebarino@gmail.com> <1245117905-19351-3-git-send-email-bebarino@gmail.com> <1245117905-19351-4-git-send-email-bebarino@gmail.com> Cc: Thomas Adam , Junio C Hamano , Johannes Sixt To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Tue Jun 16 04:05:43 2009 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1MGO3P-0000LG-HF for gcvg-git-2@gmane.org; Tue, 16 Jun 2009 04:05:40 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759679AbZFPCFd (ORCPT ); Mon, 15 Jun 2009 22:05:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759299AbZFPCFd (ORCPT ); Mon, 15 Jun 2009 22:05:33 -0400 Received: from mail-px0-f189.google.com ([209.85.216.189]:55333 "EHLO mail-px0-f189.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755264AbZFPCFT (ORCPT ); Mon, 15 Jun 2009 22:05:19 -0400 Received: by mail-px0-f189.google.com with SMTP id 27so601057pxi.33 for ; Mon, 15 Jun 2009 19:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject :date:message-id:x-mailer:in-reply-to:references; bh=9WlyXWt8z2HajayepNuH0uqYf16MpURY/ttqxjVXZ4o=; b=MHS0MkPFMuFdIt4e1n81FBuk0VXbjLJzcOaWl8veetbxfXAHWkjNV0epB0YddA+6yM 1IWhUyfgRy0oN5OuKota7MeMvK4U7SaniT+yvUsAL25j5wT2mIxoNgwJWKWU7u/HWpIY sl/WtqCzAqEVF9CFKH0JvsNL0Y8DjovepEiI4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=oU6cxw01YTlJFB1TNL6LqEVSXAKgBP4nRKiVbRuVHKEam+iFv7J1A71Lam1rNXsdcj Q5Ps2cX8QQ5A79FTUIHssyicGgfpG0umUTPmKIjQRaj6sjXA9JwLeiXHzQLjsy7kMgvk 9LwlNAxZ22VsjokfM2ajQE6AiJa1TLO7EPLI8= Received: by 10.115.58.1 with SMTP id l1mr12650262wak.106.1245117922552; Mon, 15 Jun 2009 19:05:22 -0700 (PDT) Received: from earth (user-0c9haco.cable.mindspring.com [24.152.169.152]) by mx.google.com with ESMTPS id n9sm19617wag.23.2009.06.15.19.05.20 (version=SSLv3 cipher=RC4-MD5); Mon, 15 Jun 2009 19:05:21 -0700 (PDT) Received: by earth (sSMTP sendmail emulation); Mon, 15 Jun 2009 19:05:19 -0700 X-Mailer: git-send-email 1.6.3.2.306.g4f4fa In-Reply-To: <1245117905-19351-4-git-send-email-bebarino@gmail.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: git-rebase and git-am are talkative scripts. This option will quiet them and allow them to speak only when they fail or experience errors. Note that git-am with 3way will output errors when applying, even though the 3way will usually be successfull. We suppress these errors from git-apply because they are not "true" errors until the 3way has been attempted. Add a few tests for this new feature too. Signed-off-by: Stephen Boyd --- Documentation/git-am.txt | 6 +++++- Documentation/git-rebase.txt | 4 ++++ git-am.sh | 26 ++++++++++++++++++++------ git-rebase.sh | 39 +++++++++++++++++++++++++++------------ t/t3400-rebase.sh | 7 +++++++ t/t4150-am.sh | 18 ++++++++++++++++++ 6 files changed, 81 insertions(+), 19 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=