From owner-svn-src-all@freebsd.org Sun Mar 4 10:05:00 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CC954F477E4 for ; Sun, 4 Mar 2018 10:05:00 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-yw0-x231.google.com (mail-yw0-x231.google.com [IPv6:2607:f8b0:4002:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 619F27414F for ; Sun, 4 Mar 2018 10:05:00 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: by mail-yw0-x231.google.com with SMTP id g198so4750629ywb.3 for ; Sun, 04 Mar 2018 02:05:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YNYFaCvQGnbJxr+MkDggA9F+WTjeXdvXgcbR88MFMk8=; b=QSF6b8MUbvwsRsMMQ3rN3zkyOZWmogurPmslRvf1VKeFPmIHGriyhBzYPiSje3FNMO SG8cmVx2WqRmdEGXyE6sKorDqA9xARCckuHA3F+MFVP6ycO4mQyBnKi22JAKo6CBo+Ek 7k5pfyXowrsqcjEztO4WXKNjW58/6HWsvgtQg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YNYFaCvQGnbJxr+MkDggA9F+WTjeXdvXgcbR88MFMk8=; b=nGcqPMjyq0ktrNBUw87pOiww0HdEXjeTZs5Z8gLlWQnbPbKNV/XM3CL9CyWN6jvpaR 2jD1KFAf8/SB4Va1xXRPuPEHAAsR6Kw/ij41aUo8FjE60kA7HUCjmkeJOM+GuZPeELXY qytKpEGUJqKASTpLrb+GOXYGa/8qRzHi3zMe81BeMoWHTMqq3+NsKhiK6lDmTdRE6UzA Lyr380szlO60UHfBR57+zb0VeYZPkRe3wo7VvOy8zJbNWcBee5rYse5kVLj4bb2ykJ4z gc9gyQ8c8Jc5WrHeDwTGqaQY+ldnhHVwTYjuzus36ihpiYLDWG3LHmUdvvjvq21BWToY nGGQ== X-Gm-Message-State: APf1xPCrPIS9jkp8/6y7dewZQLXFxomTGBlUUr+gWc+wpRza6ym6LqjC 2uGEo18ZzfWGwDQR+8q0acHL43eY/jBVKmbHT4/yhQ== X-Google-Smtp-Source: AG47ELv62xTlycN9PmSC955eRRCARDgZ5S10l/0D3lAndWjhbYfhqNgR6WKDA3qP2p7Epm7Pd8wfpGK3V6gzYHFamCI= X-Received: by 10.129.109.1 with SMTP id i1mr7104543ywc.113.1520157899662; Sun, 04 Mar 2018 02:04:59 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a25:23d2:0:0:0:0:0 with HTTP; Sun, 4 Mar 2018 02:04:29 -0800 (PST) In-Reply-To: <201707022100.v62L0Ume001253@repo.freebsd.org> References: <201707022100.v62L0Ume001253@repo.freebsd.org> From: Eitan Adler Date: Sun, 4 Mar 2018 02:04:29 -0800 Message-ID: Subject: Re: svn commit: r320579 - head/usr.bin/patch To: "Pedro F. Giffuni" Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Mar 2018 10:05:01 -0000 On 2 July 2017 at 14:00, Pedro F. Giffuni wrote: > + } else if (strnEQ(s, "diff --git a/", 13)) { > + /* Git-style diffs. */ > + piece_of_git = 1; This is incomplete and leaves to confusing behavior for some git diffs. In particular with 'diff.mnemonicprefix = true' the prefix is awesome something other than 'a/'. It can be 'w' for working copy, 'i' for index, 'c' for commit, or some other values. While I don't oppose this feature, it'd be better if we did not tie it to a single specific prefix. -- Eitan Adler