From: Junio C Hamano <gitster@pobox.com>
To: "Boyd Stephen Smith Jr." <bss@iguanasuicide.net>
Cc: git@vger.kernel.org, Nanako Shiraishi <nanako3@lavabit.com>
Subject: Re: [PATCH] Have manpage reference new documentation on reverting merges.
Date: Sun, 21 Dec 2008 00:00:55 -0800 [thread overview]
Message-ID: <7vzliqrm88.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <200812202335.19006.bss@iguanasuicide.net> (Boyd Stephen Smith, Jr.'s message of "Sat, 20 Dec 2008 23:35:14 -0600")
"Boyd Stephen Smith Jr." <bss@iguanasuicide.net> writes:
> But that is not the whole effect of the merge. The effect of the merge is
> both the modifications it makes to the tree and the modifications it makes to
> the history.
>
> Going from the dictionary meaning for "revert", one might expect the those
> effects to go away as well. I think a warning that the revert subcommand
> does not fully revert the merge is appropriate.
You may be technically correct, but think about the intended audience of
the warning.
People who know there are the "tree" aspect and the "history" aspect in
the merge and the revert operation will not get confused by the issue we
describe in the new HOW-TO, and they will understand the ramifications
without the help from the warning in your new paragraph. The new warning
is trying to help people who do not understand these two aspects..
I have a strong suspicion that the "tree" aspect is much easier to grasp
by new people, while the understanding of the "history" aspect comes much
later when one becomes more proficient in using git. Also, the immediate
interest of people who are reading "git revert" manual page is to revert
the effect of the merge in the "tree" aspect (iow, "I want to get the damn
thing work again"); that is where the focus of their attention is when
they read this manual page.
Your "not completely" does not tell them that the incompleteness you talk
about is "tree aspect only, not history aspect". That is what I meant by
"... may get a wrong impression". Their attention is about the "tree"
aspect, and your "not completely" will be easily misinterpreted as "the
tree effect of the merge won't get reverted completely", which is not what
you want to say. And that is why I think you are much better off not
saying "not completely" if you do not explain what you mean by it.
As I showed you how in the previous message, an alternative is to say (the
equivalent of) "not completely", but explain what incompleteness you mean.
>> Linus's "does not completely undo" only refers to the history part of the
>> merge, and that only affects future re-merges from the same branch, which
>> the reader who is interested in doing a revert of a merge right now (that
>> is why s/he is reading this paragraph) may not yet care about.
>
> They may not care about it now, but it doesn't make much sense to warn about
> it during the later merge (plus it might be computationally expensive to
> detect).
Who's talking about giving a warning by computation? Please stay on the
discussion of your documentation patch.
>> An alternative is to give a complete but brief explanation. Perhaps like
>> this:
>>
>> By reverting a merge, you are declaring that you will never want the
>> changes that were brought in by that merge you are reverting in your
>> tree. If you do merge from the same branch again in the future after
>> it is updated, git remembers your declaration, and only the changes on
>> the branch that were made after the reverted merge will be brought in.
>> This may or may not be what you want. See 'revert-a-faulty-merge'
>> HOWTO for more details.
>
> I think the wording might need to be changed a little bit, but I do like the
> longer, more complete and clear explanation and I'll work on a patch that has
> one.
next prev parent reply other threads:[~2008-12-21 8:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-21 0:32 [PATCH] Have manpage reference new documentation on reverting merges Boyd Stephen Smith Jr.
2008-12-21 2:36 ` Junio C Hamano
2008-12-21 5:35 ` Boyd Stephen Smith Jr.
2008-12-21 8:00 ` Junio C Hamano [this message]
2008-12-21 21:35 ` [PATCHv2] " Boyd Stephen Smith Jr.
2008-12-21 21:54 ` Junio C Hamano
2008-12-22 0:26 ` [PATCHv3] Have git revert documentation reference new HOWTO on reverting faulty merges Boyd Stephen Smith Jr.
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=7vzliqrm88.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=bss@iguanasuicide.net \
--cc=git@vger.kernel.org \
--cc=nanako3@lavabit.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).