From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stefan-W. Hahn" Subject: [PATCH 2/4] git-am: Add command line parameter `--keep-cr` passing it to git-mailsplit. Date: Sat, 27 Feb 2010 15:20:26 +0100 Message-ID: <1267280428-18223-3-git-send-email-stefan.hahn@s-hahn.de> References: <1266080362-24760-1-git-send-email-stefan.hahn@s-hahn.de> Cc: "Stefan-W. Hahn" To: git@vger.kernel.org, Junio C Hamano X-From: git-owner@vger.kernel.org Sat Feb 27 15:21:34 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 1NlNXw-0008PJ-Np for gcvg-git-2@lo.gmane.org; Sat, 27 Feb 2010 15:21:33 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968400Ab0B0OVI (ORCPT ); Sat, 27 Feb 2010 09:21:08 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:52581 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968379Ab0B0OUw (ORCPT ); Sat, 27 Feb 2010 09:20:52 -0500 Received: from scotty.home (port-92-203-94-156.dynamic.qsc.de [92.203.94.156]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0LzWOk-1NhiT43lsw-0143f3; Sat, 27 Feb 2010 15:20:50 +0100 Received: from scotty.home (hs@localhost [127.0.0.1]) by scotty.home (8.14.3/8.14.3/Debian-5) with ESMTP id o1REKmUw019208; Sat, 27 Feb 2010 15:20:48 +0100 Received: (from hs@localhost) by scotty.home (8.14.3/8.14.3/Submit) id o1REKm3w019204; Sat, 27 Feb 2010 15:20:48 +0100 X-Mailer: git-send-email 1.7.0.98.g42448 In-Reply-To: <1266080362-24760-1-git-send-email-stefan.hahn@s-hahn.de> X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on scotty.home X-Virus-Scanned: clamav-milter 0.95.3 at scotty X-Virus-Status: Clean X-Provags-ID: V01U2FsdGVkX184djnVFEXLxKVjJmbprQFcbtoJYiA6itM5+sJ hNakBo4A7qKR5z3mkbHFQYC+KOb5HoPSZ1DTAVqpft0FJFHKmB N3uu1jC/Tw6LRxQE5ZcnA== Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: c2ca1d7 (Allow mailsplit (and hence git-am) to handle mails with CRLF line-endings, 2009-08-04) fixed "git mailsplit" to help people with MUA whose output from save-as command uses CRLF as line terminators by stripping CR at the end of lines. However, when you know you are feeding output from "git format-patch" directly to "git am", and especially when your contents have CR at the end of line, such stripping is undesirable. To help such a use case, teach --keep-cr option to "git am" and pass that to "git mailinfo". Signed-off-by: Stefan-W. Hahn --- Documentation/git-am.txt | 7 ++++++- git-am.sh | 22 +++++++++++++++------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt index c66c565..df3c6d6 100644 --- a/Documentation/git-am.txt +++ b/Documentation/git-am.txt @@ -9,7 +9,7 @@ git-am - Apply a series of patches from a mailbox SYNOPSIS -------- [verse] -'git am' [--signoff] [--keep] [--utf8 | --no-utf8] +'git am' [--signoff] [--keep] [--keep-cr] [--utf8 | --no-utf8] [--3way] [--interactive] [--committer-date-is-author-date] [--ignore-date] [--ignore-space-change | --ignore-whitespace] [--whitespace=