From: Junio C Hamano <gitster@pobox.com>
To: Sverre Rabbelier <srabbelier@gmail.com>
Cc: Git Mailinglist <git@vger.kernel.org>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>,
Eric Wong <normalperson@yhbt.net>
Subject: Re: [RFC PATCH] Teach rebase to rebase even if upstream is up to date with -f
Date: Thu, 12 Feb 2009 22:22:38 -0800 [thread overview]
Message-ID: <7vd4dmg8k1.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <bd6139dc0902122202r25e2e320m19810097cbb54225@mail.gmail.com> (Sverre Rabbelier's message of "Fri, 13 Feb 2009 07:02:10 +0100")
Sverre Rabbelier <srabbelier@gmail.com> writes:
> On Fri, Feb 13, 2009 at 02:32, Junio C Hamano <gitster@pobox.com> wrote:
> ...
>> So my suggestion would be to add --force (or -f) like your patch does, and
>> also detect --whitespace=$option given from the command line, and if it is
>> fix (or its synonym "strip"), automatically enable --force, perhaps as a
>> follow up patch, or in the same patch.
>
> The patch to do so would be fairly trivial I think? That is, add
> 'force_rebase=t' in the --whitespace=... part. Is that change small
> enough to be a single patch, or should it be a follow-up since the
> first patch is a-means-to-an-end for the second one?
I thought I left it up to you ;-).
I do not think of a practical purpose of "git rebase -f" without other
options that actively modify the tree each commit records (e.g. the "fix
whitespace" option), perhaps other than to pretend that you committed them
later than you actually did. A patch that implements --force alone is
harder to justify, because it is unclear what good it does. It is
especially true if you make --whitespace=fix imply that behaviour.
One more thing. I kept saying "detect --whitespace=fix (or its synonym
strip)" because people can have "apply.whitespace = fix" in their
configuration file for use with "git am", and countermand the
configuration with "git rebase --whitespace=warn". Such a usage should
not imply --force.
next prev parent reply other threads:[~2009-02-13 6:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-12 19:47 [RFC PATCH] Teach rebase to rebase even if upstream is up to date with -f Sverre Rabbelier
2009-02-12 20:28 ` Johannes Schindelin
2009-02-12 20:30 ` Sverre Rabbelier
2009-02-12 20:37 ` Johannes Schindelin
2009-02-12 20:44 ` Sverre Rabbelier
2009-02-12 21:34 ` Junio C Hamano
2009-02-12 21:57 ` Sverre Rabbelier
2009-02-12 23:22 ` Junio C Hamano
2009-02-12 23:24 ` Sverre Rabbelier
2009-02-13 1:32 ` Junio C Hamano
2009-02-13 6:02 ` Sverre Rabbelier
2009-02-13 6:22 ` Junio C Hamano [this message]
2009-02-13 6:51 ` Sverre Rabbelier
2009-02-13 7:15 ` 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=7vd4dmg8k1.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=normalperson@yhbt.net \
--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 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.