From: Junio C Hamano <gitster@pobox.com>
To: Johannes Sixt <j.sixt@viscovery.net>
Cc: "Bernhard R. Link" <brlink@debian.org>, git@vger.kernel.org
Subject: Re: [PATCH] Let format-patch and rebase ignore trivial merges.
Date: Thu, 17 Dec 2009 14:44:37 -0800 [thread overview]
Message-ID: <7vaaxhfcfe.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <4B29106C.1040501@viscovery.net> (Johannes Sixt's message of "Wed\, 16 Dec 2009 17\:53\:00 +0100")
Johannes Sixt <j.sixt@viscovery.net> writes:
> Please do not set Mail-Followup-To (and use reply-to-all to keep the Cc list).
>
> Bernhard R. Link schrieb:
>> --prune-tree makes rev-list without paths equivalent to
>> "git rev-list $options -- ." (or .. or ../.. and so on,
>> if you are in some subdirectory).
>> This is the new default for format-patch and rebase
>
> Why do you need a new option when you can just add "-- ." to the rev-list
> invocation?
I agree that --[no-]prune-tree options are unnecessary. The patch to
builtin-log.c, the second hunk to revision.c, and revision.h would be
sufficient and all others should be dropped. Instead, the shell script
Porcelains can simply add "-- ." at the end of their rev-list invocations.
That way, we don't have to add anything to the documentation either.
But I wonder if it is an indication of something screwy in the workflow,
if a branch that merges others with "-s ours" is where the patches for
upstream submission is taken from with format-patch, or what is rebased
and internally gets its patches extracted with format-patch.
A branch that merges with "-s ours" is typically done so that others can
pull and build against (and "-s ours" is used to cauterize the history of
a bad side branch), and good bits merged into it would also have come from
a different clean branch that is merged into that branch. It might make
more sense to format-patch that clean branch when preparing for upstream
submission, than the "aggregated mesh of commits" branch with "-s ours"
fix-ups.
On the other hand, a branch that will be rebased to keep up with others is
by definition private, and I don't see a reason to mark with "-s ours" to
cauterize history of an unrelated side branch that tried to do something
similar to what the branch is trying to achieve in that setting. You can
instead ignore such a side branch and not merge with it. So I don't know
how a sane history you are going to rebase ends up containing a "-s ours"
merge to begin with.
next prev parent reply other threads:[~2009-12-17 22:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-16 16:45 [PATCH] Let format-patch and rebase ignore trivial merges Bernhard R. Link
2009-12-16 16:53 ` Johannes Sixt
2009-12-17 9:35 ` Bernhard R. Link
2009-12-17 11:40 ` Johannes Sixt
2009-12-17 21:48 ` Bernhard R. Link
2009-12-17 22:44 ` Junio C Hamano [this message]
2009-12-18 13:06 ` Bernhard R. Link
2009-12-18 13:22 ` Johannes Sixt
2009-12-18 14:47 ` Bernhard R. Link
2009-12-18 15:11 ` [PATCH v2] " Bernhard R. Link
2009-12-18 18:23 ` Junio C Hamano
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=7vaaxhfcfe.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=brlink@debian.org \
--cc=git@vger.kernel.org \
--cc=j.sixt@viscovery.net \
/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.