Skip to content

Commit

Permalink
gitremote-helpers(1): clarify refspec behaviour
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
johnkeeping authored and gitster committed Apr 7, 2013
1 parent c4458ec commit 9e7673e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/gitremote-helpers.txt
Expand Up @@ -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.
Expand Down

0 comments on commit 9e7673e

Please sign in to comment.