From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Beller Subject: Re: [PATCH 4/4] pathspec: record labels Date: Thu, 12 May 2016 22:41:13 -0700 Message-ID: References: <20160513001936.7623-1-sbeller@google.com> <20160513001936.7623-5-sbeller@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Duy Nguyen , "git@vger.kernel.org" , Jonathan Nieder , Jens Lehmann To: Junio C Hamano X-From: git-owner@vger.kernel.org Fri May 13 07:41:20 2016 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b15qh-0005BD-Ji for gcvg-git-2@plane.gmane.org; Fri, 13 May 2016 07:41:20 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751565AbcEMFlP (ORCPT ); Fri, 13 May 2016 01:41:15 -0400 Received: from mail-io0-f181.google.com ([209.85.223.181]:32851 "EHLO mail-io0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751073AbcEMFlO (ORCPT ); Fri, 13 May 2016 01:41:14 -0400 Received: by mail-io0-f181.google.com with SMTP id f89so120258047ioi.0 for ; Thu, 12 May 2016 22:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=HqdHr/xtFfhW+H5Ttvz9q6sASIvqIbTVemfO9+YkaLk=; b=EY2BRN7A29M9VDoqJsbeV1vsx7/4BYwVI/X7+YKJF+qIH0q5o+cOHKlx7L3c79YjaH 242XyNcJzbutYUQGvYz7LtVdpjBoopbiIFlbQzdldpRMCN7AHKaObzAWyJCUUUBmSC6t 8OqCDgEZVYbot+S6LvJrKZ0MNKkecnTaTU6P9Hon9dixUFXRlvPVPhgnSi+X4MJ4xXVi Y/LRX6ELXV7JqGLoFs1kq12hlOYJ9DTbg2pqG0b/ZiQGxKiX+hc808xOYKSvGHXP8FIT IvOwKsF89OuwnIIjUAHir9o8WY4PgniwgDehAiX6miWM/sRMyMa6qhP7kqOUPavYN1l4 NDRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=HqdHr/xtFfhW+H5Ttvz9q6sASIvqIbTVemfO9+YkaLk=; b=BtOViz17tWEToJwGIs37QIS3IVpvCC7e2Qm4ELQ0q+6w2L8t/2RB+CYBwUIzZMmam2 lSJ/ctGNPoAEeIdMLhfkGcElCAfgmNNcplssEB9rJquE/r9Wgu/B4rfURiTjcqfbwIKW 6U6crtM+M3ljOZJ+o7tpYOL/4eOqSrKOJKQKWS0gY6qaFdShN2kIKwfXU3eQ3C8lL2a2 2aOzPQ7J18GKaWfhTxXCvn1s8sp/B3fcURwL+s2fb9OYYf/uJc+n0NN/CC8IVCC/3B6N PDMy0VQnayapmg7InrXg8K1Zstw16CR4d/EK/02LXKEAwevUPWhf6FG/ZkhOnHNZ6cfn 1g1g== X-Gm-Message-State: AOPr4FVeEenFNVUeOX42ThBMd8YyQFEPr78GTYAboWCqg0XLylAQRVeDs/DazAS6s/hUUnu18tRd79Q06ciE3JgA X-Received: by 10.107.161.68 with SMTP id k65mr11699817ioe.110.1463118073517; Thu, 12 May 2016 22:41:13 -0700 (PDT) Received: by 10.107.2.3 with HTTP; Thu, 12 May 2016 22:41:13 -0700 (PDT) In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Thu, May 12, 2016 at 10:26 PM, Junio C Hamano wrote: > Stefan Beller writes: > >> + >> +label:;; >> + Labels can be assigned to pathspecs in the .gitattributes file. >> + By specifying a list of labels the pattern will match only >> + files which have all of the listed labels. >> + > > Attributes are given to paths, not pathspecs. You specify which paths > the entry applies to by matching the pattern (which is at the beginning > of the line) against each path, and take the matching entries. > > In any case, what the first sentence tries to explain applies to > each and every attribute .gitattributes file can define, and > explaining it should be better left for the first sentence in the > DESCRIPTION section. > > As to the second sentence, I would say "When specifying the paths to > work on to various Git commands, the :(label=