git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Jacob Keller <jacob.e.keller@intel.com>
Cc: git@vger.kernel.org, Jacob Keller <jacob.keller@gmail.com>,
	Daniel Barkalow <barkalow@iabervon.iabervon.org>
Subject: Re: [PATCH] git: add optional support for full pattern in fetch refspecs
Date: Tue, 07 Jul 2015 21:24:00 -0700	[thread overview]
Message-ID: <xmqq615v1dlr.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <1436309869-19609-1-git-send-email-jacob.e.keller@intel.com> (Jacob Keller's message of "Tue, 7 Jul 2015 15:57:49 -0700")

Jacob Keller <jacob.e.keller@intel.com> writes:

> +remote.<name>.arbitrarypattern::
> +	When set to true, fetching from this remote will allow arbitrary complex
> +	patterns for the fetch refspecs. For example,
> +	refs/tags/prefix-*:refs/tags/prefix-* will work as expected. Care should be
> +	taken as you could fetch refs into names that don't exist on the remote and
> +	may end up pushing them again later by accident.

Bad name and explanation, unless you truly mean "arbitrary", like
taking something like "refs/ta*/prefix-*-*-foo:refs/*".

More importantly, this is not "pattern"; you are talking about
refspec, I think.

But that probably does not matter.  I do not think this even needs
to exist as an option.

People's existing settings would not have anything other than an
asterisk as a whole path component on each side (or no asterisk
anywhere), and if they had an asterisk anywhere else they would have
gotten an error and wouldn't have made any progress until they fixed
it.  So if you loosen the current rule sligntly and tell them "If
your refspec has an asterisk in it, then you must have one asterisk
on each side of it. That rule hasn't changed. But your asterisks no
longer have to be a whole path component", such a change would not
hurt them.  Their existing setting that work would not notice, and
existing users would not be relying on a refspec with an asterisk as
part of a path component to error out.

  reply	other threads:[~2015-07-08  4:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-07 22:57 [PATCH] git: add optional support for full pattern in fetch refspecs Jacob Keller
2015-07-08  4:24 ` Junio C Hamano [this message]
2015-07-08  4:47   ` Jacob Keller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqq615v1dlr.fsf@gitster.dls.corp.google.com \
    --to=gitster@pobox.com \
    --cc=barkalow@iabervon.iabervon.org \
    --cc=git@vger.kernel.org \
    --cc=jacob.e.keller@intel.com \
    --cc=jacob.keller@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).