[PATCH 6/7] Documentation: mention branches rather than heads

Previous thread: [PATCH 1/7] Documentation: do not use regexp in refspec descriptions by Anders Melchiorsen on Wednesday, October 29, 2008 - 4:25 pm. (6 messages)

Next thread: [PATCH 4/7] Documentation: remove a redundant elaboration by Anders Melchiorsen on Wednesday, October 29, 2008 - 4:25 pm. (3 messages)
To: <git@...>
Cc: Anders Melchiorsen <mail@...>, <gitster@...>
Date: Wednesday, October 29, 2008 - 4:25 pm

Most of the git push page talks about branches, so make it consistent
also in this paragraph.

Signed-off-by: Anders Melchiorsen <mail@cup.kalibalik.dk>
---
Documentation/git-push.txt | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt
index 52035db..4e339c7 100644
--- a/Documentation/git-push.txt
+++ b/Documentation/git-push.txt
@@ -53,8 +53,8 @@ Pushing an empty <src> allows you to delete the <dst> ref from
the remote repository.
+
The special refspec `:` (or `+:` to allow non-fast forward updates)
-directs git to push "matching" heads: for every head that exists on
-the local side, the remote side is updated if a head of the same name
+directs git to push "matching" branches: for every branch that exists on
+the local side, the remote side is updated if a branch of the same name
already exists on the remote side. This is the default operation mode
if no explicit refspec is found (that is neither on the command line
nor in any Push line of the corresponding remotes file---see below).
--
1.6.0.2.514.g23abd3

--

To: <git@...>
Cc: Anders Melchiorsen <mail@...>, <gitster@...>
Date: Wednesday, October 29, 2008 - 4:25 pm

The <ref> parameter has not been introduced, so rewrite to
avoid it.

Signed-off-by: Anders Melchiorsen <mail@cup.kalibalik.dk>
---
Documentation/git-push.txt | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt
index 4e339c7..e848ff9 100644
--- a/Documentation/git-push.txt
+++ b/Documentation/git-push.txt
@@ -46,8 +46,8 @@ to fast forward the remote ref that matches <dst>. If
the optional leading plus `+` is used, the remote ref is updated
even if it does not result in a fast forward update.
+
-A parameter <ref> without a colon pushes the <ref> from the source
-repository to the destination repository under the same name.
+A lonely <src> parameter (without a colon and a destination) pushes
+the <src> to the same name in the destination repository.
+
Pushing an empty <src> allows you to delete the <dst> ref from
the remote repository.
--
1.6.0.2.514.g23abd3

--

Previous thread: [PATCH 1/7] Documentation: do not use regexp in refspec descriptions by Anders Melchiorsen on Wednesday, October 29, 2008 - 4:25 pm. (6 messages)

Next thread: [PATCH 4/7] Documentation: remove a redundant elaboration by Anders Melchiorsen on Wednesday, October 29, 2008 - 4:25 pm. (3 messages)