git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitremote-helpers(1): clarify refspec behaviour
@ 2013-04-06 18:13 John Keeping
  2013-04-06 18:15 ` Sverre Rabbelier
  2013-04-17 22:30 ` Felipe Contreras
  0 siblings, 2 replies; 3+ messages in thread
From: John Keeping @ 2013-04-06 18:13 UTC (permalink / raw)
  To: git; +Cc: Florian Achleitner, Sverre Rabbelier, John Keeping

The documentation says that "If no 'refspec' capability is advertised,
there is an implied `refspec *:*`" but this is only the case for the
"import" command.

Since there is a comment in transport-helper.c indicating that this
default is for historical reasons, change the documentation to clarify
that a refspec should always be specified.

Signed-off-by: John Keeping <john@keeping.me.uk>
---
 Documentation/gitremote-helpers.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/gitremote-helpers.txt b/Documentation/gitremote-helpers.txt
index 0c91aba..f506031 100644
--- a/Documentation/gitremote-helpers.txt
+++ b/Documentation/gitremote-helpers.txt
@@ -174,8 +174,8 @@ ref.
 This capability can be advertised multiple times.  The first
 applicable refspec takes precedence.  The left-hand of refspecs
 advertised with this capability must cover all refs reported by
-the list command.  If no 'refspec' capability is advertised,
-there is an implied `refspec *:*`.
+the list command.  If a helper does not need a specific 'refspec'
+capability then it should advertise `refspec *:*`.
 
 'bidi-import'::
 	This modifies the 'import' capability.
-- 
1.8.2.692.g17a9715

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] gitremote-helpers(1): clarify refspec behaviour
  2013-04-06 18:13 [PATCH] gitremote-helpers(1): clarify refspec behaviour John Keeping
@ 2013-04-06 18:15 ` Sverre Rabbelier
  2013-04-17 22:30 ` Felipe Contreras
  1 sibling, 0 replies; 3+ messages in thread
From: Sverre Rabbelier @ 2013-04-06 18:15 UTC (permalink / raw)
  To: John Keeping; +Cc: Git List, Florian Achleitner

In Sat, Apr 6, 2013 at 11:13 AM, John Keeping <john@keeping.me.uk> wrote:
> The documentation says that "If no 'refspec' capability is advertised,
> there is an implied `refspec *:*`" but this is only the case for the
> "import" command.
>
> Since there is a comment in transport-helper.c indicating that this
> default is for historical reasons, change the documentation to clarify
> that a refspec should always be specified.
>
> Signed-off-by: John Keeping <john@keeping.me.uk>

Acked-by: Sverre Rabbelier <srabbelier@gmail.com>

--
Cheers,

Sverre Rabbelier

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gitremote-helpers(1): clarify refspec behaviour
  2013-04-06 18:13 [PATCH] gitremote-helpers(1): clarify refspec behaviour John Keeping
  2013-04-06 18:15 ` Sverre Rabbelier
@ 2013-04-17 22:30 ` Felipe Contreras
  1 sibling, 0 replies; 3+ messages in thread
From: Felipe Contreras @ 2013-04-17 22:30 UTC (permalink / raw)
  To: John Keeping; +Cc: git, Florian Achleitner, Sverre Rabbelier

On Sat, Apr 6, 2013 at 12:13 PM, John Keeping <john@keeping.me.uk> wrote:

> --- a/Documentation/gitremote-helpers.txt
> +++ b/Documentation/gitremote-helpers.txt
> @@ -174,8 +174,8 @@ ref.
>  This capability can be advertised multiple times.  The first
>  applicable refspec takes precedence.  The left-hand of refspecs
>  advertised with this capability must cover all refs reported by
> -the list command.  If no 'refspec' capability is advertised,
> -there is an implied `refspec *:*`.
> +the list command.  If a helper does not need a specific 'refspec'
> +capability then it should advertise `refspec *:*`.

But if it advertises a straight 'refspec *:*', nothing would work. If
anything, it should be 'refs/heads/*:refs/remotes/$alias/*', but then
tags would fail. Why not just tell the remote helpers to do the right
thing and avoid this comment altogether?

-- 
Felipe Contreras

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-17 22:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-06 18:13 [PATCH] gitremote-helpers(1): clarify refspec behaviour John Keeping
2013-04-06 18:15 ` Sverre Rabbelier
2013-04-17 22:30 ` Felipe Contreras

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).