From: Sam Vilain <sam.vilain@catalyst.net.nz>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Amend git-push refspec documentation
Date: Tue, 22 Apr 2008 20:27:13 +1200 [thread overview]
Message-ID: <480DA161.3070107@catalyst.net.nz> (raw)
In-Reply-To: <7vk5iq5tj2.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
>> -The <src> side can be an
>> -arbitrary "SHA1 expression" that can be used as an
>> -argument to `git-cat-file -t`. E.g. `master~4` (push
>> -four parents before the current master head).
>> +The <src> side represents the source branch (or arbitrary
>> +"SHA1 expression"; see linkgit:git-rev-parse[1]) that you want to
>> +push. The <dst> side represents the destination location.
>> +
>
> Hmm. We lost an example but refer to a more authoritative information,
> which is probably Ok.
Well, the example I think was quite confusing to people who have never
seen `master~4` before.
>> @@ -179,9 +180,10 @@ git push origin master:satellite/master::
>>
>> git push origin master:refs/heads/experimental::
>> Create the branch `experimental` in the `origin` repository
>> - by copying the current `master` branch. This form is usually
>> - needed to create a new branch in the remote repository as
>> - there is no `experimental` branch to match.
>> + by copying the current `master` branch. This form is only
>> + needed to create a new branch in the remote repository when
>> + the local name and the remote name are different; otherwise,
>> + the branch name on its own will work.
>
> Note that writing "refs/tags/xprm" instead would allow you to create a
> lightweight tag over there.
True. You could probably replace 'branch' with 'ref' in the two places
it occurs in the last sentence to encompass that meaning, too.
Cheers,
Sam.
prev parent reply other threads:[~2008-04-22 8:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-21 3:31 [PATCH] Amend git-push refspec documentation Sam Vilain
2008-04-22 5:48 ` Junio C Hamano
2008-04-22 8:27 ` Sam Vilain [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=480DA161.3070107@catalyst.net.nz \
--to=sam.vilain@catalyst.net.nz \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).