From 803918462e58005d18c0ab63686dbd9e91330dfe Mon Sep 17 00:00:00 2001 From: Anders Melchiorsen Date: Mon, 26 Jan 2009 00:45:33 +0100 Subject: [PATCH] Documentation: rework src/dst description in git push This tries to make the description of ref matching in git push easier to read. Beauty is in the eye of the beholder, though. Signed-off-by: Anders Melchiorsen Signed-off-by: Junio C Hamano --- Documentation/git-push.txt | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt index 60de47d439..7d1eced7d2 100644 --- a/Documentation/git-push.txt +++ b/Documentation/git-push.txt @@ -39,21 +39,22 @@ OPTIONS It is used to specify with what object the ref in the remote repository is to be updated. + -The side represents the source branch (or arbitrary -"SHA1 expression", such as `master~4` (four parents before the -tip of `master` branch); see linkgit:git-rev-parse[1]) that you -want to push. The side represents the destination location. +The is often the name of the branch you would want to push, but +it can be any arbitrary "SHA-1 expression", such as `master~4` or +`HEAD` (see linkgit:git-rev-parse[1]). + -The local ref that matches is used -to fast forward the remote ref that matches . If -the optional leading plus `+` is used, the remote ref is updated -even if it does not result in a fast forward update. +The tells which ref on the remote side is updated with this +push. Arbitrary expressions cannot be used here, an actual ref must +be named. If `:` is omitted, the same ref as will be +updated. ++ +The object referenced by is used to fast forward the ref +on the remote side. If the optional leading plus `{plus}` is used, the +remote ref is updated even if it does not result in a fast forward +update. + `tag ` means the same as `refs/tags/:refs/tags/`. + -A lonely parameter (without a colon and a destination) pushes -the to the same name in the destination repository. -+ Pushing an empty allows you to delete the ref from the remote repository. +