From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [RFC] The design of new pathspec features Date: Mon, 28 Jan 2013 21:05:37 -0800 Message-ID: <7vpq0otw7y.fsf@alter.siamese.dyndns.org> References: <20130129043517.GA2878@duynguyen-vnpc.dek-tpc.internal> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org To: Duy Nguyen X-From: git-owner@vger.kernel.org Tue Jan 29 06:06:03 2013 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 1U03OU-00049O-Q2 for gcvg-git-2@plane.gmane.org; Tue, 29 Jan 2013 06:06:03 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752572Ab3A2FFm (ORCPT ); Tue, 29 Jan 2013 00:05:42 -0500 Received: from b-pb-sasl-quonix.pobox.com ([208.72.237.35]:47095 "EHLO smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752022Ab3A2FFk (ORCPT ); Tue, 29 Jan 2013 00:05:40 -0500 Received: from smtp.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id E7D8C830E; Tue, 29 Jan 2013 00:05:39 -0500 (EST) 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=5kKxauUlSCSYBZWutuk2ignebqw=; b=FQHdFn 8HrzhRHofnRVeAX335WGOpw2ZTp5qZpd6xMYJUop3qG/95Sqe5X0Wk6LMakzdZ/q bPrr1ZuYzv6nUV2AuuzsYOtjtMrV3Ql2ZFO0xktXljmw/EWMcKG0jcd4lq5PzJDT 4UxeyEtV07O27WeabRCBUls46YkogKWfRCpJA= 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=VYQYMbCUEnGxv09ximwu59WjBdhptuXQ kAqlumHf0vVN60bzicaHMcn+bVqCXUtUeVJn3nuOWgXOIxHXe1iyUQleaBgBfmtI kcKQ8nqH5I50hLx+VRig3zdASfw0t/lDuGS6qyMeTA9why/uMGEnZIqI6fmOXu0R ieSAsfa6mVY= Received: from b-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id DBDA4830D; Tue, 29 Jan 2013 00:05:39 -0500 (EST) Received: from pobox.com (unknown [98.234.214.94]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by b-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 39BDB830B; Tue, 29 Jan 2013 00:05:39 -0500 (EST) In-Reply-To: <20130129043517.GA2878@duynguyen-vnpc.dek-tpc.internal> (Duy Nguyen's message of "Tue, 29 Jan 2013 11:35:17 +0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 860A48DA-69D1-11E2-9216-F0CE2E706CDE-77302942!b-pb-sasl-quonix.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Duy Nguyen writes: > Pathspec mnemonic > ================= > > Are :(literal) and :(glob) used often enough to deserve a short > mnemonic (like :/ is equivalent to :(top))? Which symbols should be > used? I do not think we should discuss this before letting people gain experience with various forms of magic; otherwise we would at best end up with a concensus guess among uninformed. > New way to specify long pathspec magic > ====================================== > > While testing the pathspec magic code, I grow tired of quoting :(glob) > every time because '(' is the start of a new shell. Which is one of > the reasons I introduce --[no]glob-pathspecs. Still I'd like a way to > specify long pathspec magic without quoting. Is this a real issue, though? Often interesting pathspecs do have shell globs in them and we have to quote them anyway. > How about making ":q/xxx/" an equivalence of ":(xxx)"? A moderately strong no from here.