Skip to content

Commit 9e7673e

Browse files
johnkeepinggitster
authored andcommitted
gitremote-helpers(1): clarify refspec behaviour
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 <[email protected]> Acked-by: Sverre Rabbelier <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c4458ec commit 9e7673e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/gitremote-helpers.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ ref.
174174
This capability can be advertised multiple times. The first
175175
applicable refspec takes precedence. The left-hand of refspecs
176176
advertised with this capability must cover all refs reported by
177-
the list command. If no 'refspec' capability is advertised,
178-
there is an implied `refspec *:*`.
177+
the list command. If a helper does not need a specific 'refspec'
178+
capability then it should advertise `refspec *:*`.
179179

180180
'bidi-import'::
181181
This modifies the 'import' capability.

0 commit comments

Comments
 (0)