All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Petr Baudis <pasky@suse.cz>
Cc: Christian MICHON <christian.michon@gmail.com>,
	git list <git@vger.kernel.org>
Subject: Re: [PATCH] git log -p -m: Document, honor --first-parent
Date: Tue, 09 Feb 2010 19:23:18 -0800	[thread overview]
Message-ID: <7vk4ullqop.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <20100210021148.GT9553@machine.or.cz> (Petr Baudis's message of "Wed\, 10 Feb 2010 03\:12\:10 +0100")

Petr Baudis <pasky@suse.cz> writes:

> * The branch was created long ago, but has merged latest changes of the
> top of HEAD in, and now the branch is merged back, that's a "bad
> fastforward" since that flips the perspective of main-vs-topic branch.
>
> I feel that it's important to point out this caveat.

Ah, I thought you were contrasting between ff and non-ff, but instead you
were giving caveat about trusting "fast-parent", which I didn't realize.

Yeah, but in general, unless it is the final merge to consolidate the work
on the topic to mainline that was delegated by the mainline maintainer to
the topic person, merging _from_ mainline _to_ topic should rarely happen.
And when it happens, relying on the first-parent ancestry obviously breaks
down.

> I really dislike the "first-parent ancestry" wording, I think it muds
> down the whole issue.

I am not particularly fond of the wording, either, but any other word you
would use, you would need to explain the background information, i.e. how
and why the concept embodied by that other word you choose to use relates
to the "--first-parent" option.

You can for example say "the changes introduced to the mainline by each
commit" (and by "commit" we mean both single parent ones directly made
while the mainline was the current branch, and merges made into that
branch); you need to define what you mean by "the mainline", and what your
assumptions are about the workflow employed (e.g. "rarely if ever merge
goes the wrong direction").

>> > +		else if (opt->first_parent_only) {
>> > +			/* Generate merge log entry only for the first
>> > +			 * parent, showing summary diff of the others
>> > +			 * we merged _in_. */
>> 
>> Style?
>
> What's wrong?

	/*
         * We prefer to write multi-line comments
         * like this.
         */

  reply	other threads:[~2010-02-10  3:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-09 23:45 What should I do to display the diff of even a simple merge commit? Christian MICHON
2010-02-09 23:46 ` Christian MICHON
2010-02-09 23:57 ` Petr Baudis
2010-02-10  0:05   ` Junio C Hamano
2010-02-10  1:11     ` [PATCH] git log -p -m: Document, honor --first-parent Petr Baudis
2010-02-10  1:30       ` Junio C Hamano
2010-02-10  2:12         ` Petr Baudis
2010-02-10  3:23           ` Junio C Hamano [this message]
2010-02-10  0:07   ` What should I do to display the diff of even a simple merge commit? Christian MICHON

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=7vk4ullqop.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=christian.michon@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=pasky@suse.cz \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.