From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH 4/4] pathspec: record labels Date: Thu, 12 May 2016 22:26:10 -0700 Message-ID: References: <20160513001936.7623-1-sbeller@google.com> <20160513001936.7623-5-sbeller@google.com> Mime-Version: 1.0 Content-Type: text/plain Cc: pclouds@gmail.com, git@vger.kernel.org, jrnieder@gmail.com, Jens.Lehmann@web.de To: Stefan Beller X-From: git-owner@vger.kernel.org Fri May 13 07:26:21 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 1b15cB-0008Cd-SP for gcvg-git-2@plane.gmane.org; Fri, 13 May 2016 07:26:20 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752665AbcEMF0P (ORCPT ); Fri, 13 May 2016 01:26:15 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:61838 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752640AbcEMF0O (ORCPT ); Fri, 13 May 2016 01:26:14 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 4A8D41B6AE; Fri, 13 May 2016 01:26:13 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=17bAqPe3rMrBJ+2JdvBMEEyG+VQ=; b=gzAgOq GyyyxWCTCeTofGEDhyGuUz8R/X/VUTZ9ISuh0lkgQpqvS3AGoEUJXB5klULhMuL0 VGpVHxt7tqrTW5W0UMPVfd4hK8NL3fc9EivzYB9H0En99TbmSqCwi31q3ZJ27veM xp2Vl2NnGE1spvtwJylGIV0bkz2ZHe1BqMwNg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=MN/dEofE4y4i95oMNHMGyKjPQ1fLRvXQ Y1R80p6upZFTkMrt8a+Qys0uINZ/IgklHiH8CLWM+6ykerOpHAtQWytAMUS31Yik xKGDJDrNyQbazmWi5s+sn6ukzjl42PaOxovTB9QMtLTtO6r6AKbT8uh4DhkN8FXL Q2SKYI6UqT8= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 424241B6AD; Fri, 13 May 2016 01:26:13 -0400 (EDT) Received: from pobox.com (unknown [104.132.0.95]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id B11CB1B6AC; Fri, 13 May 2016 01:26:12 -0400 (EDT) In-Reply-To: <20160513001936.7623-5-sbeller@google.com> (Stefan Beller's message of "Thu, 12 May 2016 17:19:36 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Pobox-Relay-ID: 34F6EC62-18CB-11E6-B05E-D05A70183E34-77302942!pb-smtp2.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: 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=