From: Marc Branchaud <marcnarc@xiplink.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, srabbelier@gmail.com
Subject: Re: [PATCH] Expand explanation of the use of + in git push refspecs.
Date: Tue, 24 Feb 2009 11:54:45 -0500 [thread overview]
Message-ID: <49A42655.40708@xiplink.com> (raw)
In-Reply-To: <7viqn5k8c4.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
>
> I am of two minds with this. The understanding of the concept of
> fast-forwardness is necessary not just to understand push but also to
> understand merge, and if glossary is missing the definition, we should add
> one there.
It's precisely because fast-forwarding and merging are so closely
related (at least in my mind) that I felt the need to clarify push's
documentation. My intuition about "non-fast-forward" is in the context
of pulling and merging. So the current man page sounds to me like
push's non-fast-forward is a merge, which it clearly isn't.
> What exactly happens when the <dst> is updated is the same
> regardless of ff or non-ff in that the old 40 hexdecimal object name is
> gone and replaced with the new one, and it does not feel right to say "if
> ff, we update if non-ff you can force to overwrite." Either way, you
> overwrite and there is no trace of the old one. So we would want to say
> something like:
>
> The name of the object referenced by <src> is used to update the ref
> <dst> on the remote side, but by default this is only allowed if the
> update is fast-forward. By having the optional leading plus, you can
> tell git to update the ref <dst> even when the update is not a
> fast-forward.
My second attempt used your wording (mostly), and also emphasized the
not-merging aspect.
> Please don't wrap a full paragraph, only to change a few sentences.
> AsciiDoc wraps lines for output just fine; it took me a few extra minutes
> to make sure there is no other changes.
Whoops, sorry! Will avoid reflowing in the future.
M.
prev parent reply other threads:[~2009-02-24 16:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-19 17:39 [PATCH] Expand explanation of the use of + in git push refspecs Marc Branchaud
2009-02-19 17:39 ` [PATCHv2] Docs: " Marc Branchaud
2009-02-24 17:39 ` Junio C Hamano
2009-02-19 18:20 ` [PATCH] " Sverre Rabbelier
2009-02-20 5:10 ` Junio C Hamano
2009-02-20 5:04 ` Junio C Hamano
2009-02-24 16:54 ` Marc Branchaud [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=49A42655.40708@xiplink.com \
--to=marcnarc@xiplink.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=srabbelier@gmail.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).