From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-5.5 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id BCC72207EC for ; Mon, 3 Oct 2016 21:28:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752034AbcJCV2S (ORCPT ); Mon, 3 Oct 2016 17:28:18 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:33589 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751500AbcJCV2Q (ORCPT ); Mon, 3 Oct 2016 17:28:16 -0400 Received: by mail-pf0-f181.google.com with SMTP id 190so20783628pfv.0 for ; Mon, 03 Oct 2016 14:28:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=0OkcvvAyfacL3PEI3sDKY4QPOtrXTfjO7Ma/IAPbjW8=; b=oZHH7ZNMLZmcDMZfcGVu1VIAP9fUlLp2Fh+rem4f3XY1eHhYlis/cQIwXRpE9ZhhnJ lbWRKcAhrMjVMwjhV0S+8MlP2/14Mh7BO7z7h/WJ5HeYG7oNG+GHp7RVi29jVSHuTxIY t2wSfksSq8Plhz/31h9vb1TQOBYX13dyHm0OJiEOl7NuGMXthFOPQQm+0MwrJRPUbocl gqv1sGiBZCFLS6dWyzzMwPZ0kU8RERuR7m25zzRkQii6EiSMXI5XIUicP78u3DUd/ZZM ti7tB6IZ+S+Au8kWD6+jm7jv8QVtgvd96bSlkGIRG2OVODEiTJqK4yEarUxdHx1gZc3M HNsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=0OkcvvAyfacL3PEI3sDKY4QPOtrXTfjO7Ma/IAPbjW8=; b=VYFfegbMlXKR6MfJEGTV7g4b/EhmSWIg3apHTttq1+s0ZMjmZdYZeuyp/sGucXuboD OypMQ+PnGvzCqXfOyPpwY7oEaKnQPPAJputCBQa0QP5UKCBYjATqpXmc8kRL37T5ImYk 1H0erGs6BOI6YAuLzygWq6nIf8EOorUV+qtRe9e3aggh+0Z2l42x9/G9zndsKvh6Ow4r 9o7UG/GWgY4TvFRGs2Uc6bzChl0eC89g22EbJ0vyEBZBCjiVXVOQUsrn4aTgOHl5aCYk jILVH0apk/kYlXllFPGhRINykvZiF3JpGT1pQS/irK8bX1JYR1PRp8h/0mSxUHHjJAIG CfJA== X-Gm-Message-State: AA6/9Rm2a8ucWru53kNA7JgVgk065A1MAg5BsnjFFlQev3BiJMgfRW9rvmheG6a8aJdBQPQ0 X-Received: by 10.98.198.70 with SMTP id m67mr311446pfg.34.1475530095962; Mon, 03 Oct 2016 14:28:15 -0700 (PDT) Received: from twelve2.mtv.corp.google.com ([2620:0:1000:5b10:a8c4:ef1c:855a:28ff]) by smtp.gmail.com with ESMTPSA id s12sm49388074pfj.73.2016.10.03.14.28.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Oct 2016 14:28:14 -0700 (PDT) Subject: Re: [RFC/PATCH 0/2] place cherry pick line below commit title To: Junio C Hamano References: <11e41a94-df8c-494a-584b-e2bc8da2de3a@google.com> Cc: git@vger.kernel.org, Christian Couder From: Jonathan Tan Message-ID: Date: Mon, 3 Oct 2016 14:28:14 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On 10/03/2016 12:17 PM, Junio C Hamano wrote: > It may be necessary for the code to analize the lines in a block > identified as "likely to be a trailing block" more carefully, > though. The example 59f0aa94 in the message you are responding to > has "Link 1:" that consists of 3 physical lines. An instruction to > interpret-trailers to add a new one _after_ "Link-$n:" may have to > treat these as a single logical line and do the addition after them, > i.e. before "Link 2:" line, for example. > > I also saw > > Signed-off-by: Some body (some comment > that extends to the next line without being indented) > Sined-off-by: Some body Else > > where the only clue that the second line is logically a part of the > first one was the balancing of parentheses (or [brakets]). To > accomodate real-world use cases, you may have to take into account a > lot more than the strict rfc-822 style "line folding". If we define a logical trailer line as the set of physical lines until the next trailer line...it is true that this has some precedence in that such lines can be written (although this might not be intentional): $ git interpret-trailers --trailer "a=foo bar"