From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Gortmaker Subject: [PATCH] git-am: create a config setting for reject control. Date: Thu, 28 Oct 2010 21:27:30 -0400 Message-ID: <1288315650-2488-1-git-send-email-paul.gortmaker@windriver.com> To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Fri Oct 29 03:32:58 2010 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PBdpu-0004Dw-KF for gcvg-git-2@lo.gmane.org; Fri, 29 Oct 2010 03:32:54 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754449Ab0J2B1d (ORCPT ); Thu, 28 Oct 2010 21:27:33 -0400 Received: from mail.windriver.com ([147.11.1.11]:34958 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753192Ab0J2B1c (ORCPT ); Thu, 28 Oct 2010 21:27:32 -0400 Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id o9T1RV57028304 for ; Thu, 28 Oct 2010 18:27:31 -0700 (PDT) Received: from ala-mail06.corp.ad.wrs.com ([147.11.57.147]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 28 Oct 2010 18:27:31 -0700 Received: from yow-pgortmak-d1.corp.ad.wrs.com ([128.224.146.65]) by ala-mail06.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 28 Oct 2010 18:27:31 -0700 X-Mailer: git-send-email 1.7.3.2.146.g2d444 X-OriginalArrivalTime: 29 Oct 2010 01:27:31.0755 (UTC) FILETIME=[750EF7B0:01CB7708] Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: git am already accepts a "--reject" switch, which basically means apply the bits you can, but you can't set it as enabled by default currently. This adds a config option for it, and a --no-reject so that you can manually override it. The implementation copies from the one and only existing git-am config option -- "keepcr". Signed-off-by: Paul Gortmaker --- Documentation/git-am.txt | 12 +++++++++--- git-am.sh | 19 +++++++++++++++++-- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt index 51297d0..5158e20 100644 --- a/Documentation/git-am.txt +++ b/Documentation/git-am.txt @@ -13,8 +13,8 @@ SYNOPSIS [--3way] [--interactive] [--committer-date-is-author-date] [--ignore-date] [--ignore-space-change | --ignore-whitespace] [--whitespace=