From: Alexander 'z33ky' Hirsch <1zeeky@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, "brian m. carlson" <sandals@crustytoothpaste.net>
Subject: Re: [PATCH] rebase: add --verify-signatures
Date: Wed, 23 Dec 2015 00:12:37 +0100 [thread overview]
Message-ID: <20151222231237.GA10408@blarch> (raw)
In-Reply-To: <xmqqvb7re55d.fsf@gitster.mtv.corp.google.com>
Sorry, I didn't do a group-reply in my last mail.
On Mon, Dec 21, 2015 at 03:46:54PM -0800, Junio C Hamano wrote:
> Alexander 'z33ky' Hirsch <1zeeky@gmail.com> writes:
>
> > On Thu, Dec 17, 2015 at 10:22:20AM -0800, Junio C Hamano wrote:
> >> I suspect that you are missing the bigger workflow issues, if you
> >> think this and merge are the same.
> >>
> >> git-merge will check the other history on the side branch that you
> >> are merging _into_ the trunk, to give you an opportunity to reject
> >> what does not pass and keep the trunk sane without doing anything
> >> else. How you (or others who asked you to pull) clean up the side
> >> branch is outside the scope of its verification.
> >>
> >> Your change to "git pull --rebase" checks the other way---the
> >> history, which is already the trunk, onto which your work will be
> >> rebased. There is nothing you can do without messing with the trunk
> >> if the validation did not pass, be it with a rewind-and-rebuild or a
> >> sealing empty commit which is pointless.
> >
> > It would still make sense for long-lived development branches that
> > contain experimental or controversial features, or for forks/private
> > copies that add a couple of commits onto a branch. Merging is certainly
> > an option, but I don't see why rebasing would be a wrong alternative.
>
> Nobody says rebase is a wrong alternative.
>
> It is just the time you decide to rebase is a wrong time to check,
> iow, too late, for the validation of the tip.
In that case I would like to submit a patch that warns or even errors in
case both --rebase and --verify-signatures is passed to git-pull.
I think an error would be appropriate, but in theory this could break
scripts that have done that, albeit it probably didn't do what the user
expected, and I don't know git's policy about breaking something like
this.
prev parent reply other threads:[~2015-12-22 21:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-10 13:03 [PATCH] rebase: add --verify-signatures Alexander 'z33ky' Hirsch
2015-12-10 19:11 ` Junio C Hamano
2015-12-10 19:53 ` Junio C Hamano
2015-12-16 13:39 ` Alexander 'z33ky' Hirsch
2015-12-16 18:12 ` Junio C Hamano
2015-12-17 1:04 ` Alexander 'z33ky' Hirsch
2015-12-17 18:22 ` Junio C Hamano
[not found] ` <20151221140414.GA3422@netblarch.tu-darmstadt.de>
[not found] ` <xmqqvb7re55d.fsf@gitster.mtv.corp.google.com>
2015-12-22 23:12 ` Alexander 'z33ky' Hirsch [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=20151222231237.GA10408@blarch \
--to=1zeeky@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=sandals@crustytoothpaste.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.