doc: git-http-push: describe the refs as pattern pairs
Each member of the pair is explained but they are not defined beforehand. Signed-off-by: Jean-Noël Avila <jn.avila@free.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jean-Noël Avila committed
Nov 6, 2021 at 19:48 UTC
6ae7e8835359edc2e740572dabc3f1efd9b179cd
1 file changed
+6
-7
Documentation/git-http-push.txt
+6
-7
@@ -63,16 +63,15 @@ of such patterns separated by a colon ":" (this means that a ref name
63
cannot have a colon in it). A single pattern '<name>' is just a
64
shorthand for '<name>:<name>'.
65
66
-Each pattern pair consists of the source side (before the colon)
67
-and the destination side (after the colon). The ref to be
68
-pushed is determined by finding a match that matches the source
69
-side, and where it is pushed is determined by using the
70
-destination side.
66
+Each pattern pair '<src>:<dst>' consists of the source side (before
67
+the colon) and the destination side (after the colon). The ref to be
68
+pushed is determined by finding a match that matches the source side,
69
+and where it is pushed is determined by using the destination side.
70
72
- - It is an error if <src> does not match exactly one of the
71
+ - It is an error if '<src>' does not match exactly one of the
72
local refs.
73
75
- - If <dst> does not match any remote ref, either
74
+ - If '<dst>' does not match any remote ref, either
75
76
* it has to start with "refs/"; <dst> is used as the
77
destination literally in this case.