Subject: Re: [PATCH] rebase --fix: interactive fixup mode

From: Jakub Narebski <[email-masked]>
Date: Sun, 08 Jan 2012 13:57:03 -0800 (PST)

Clemens Buchacher <[email-masked]> writes:

[...]
> In order to determine a suitable range automatically, it is a reasonable
> heuristic to rebase onto the most recent merge commit.

Why not additionally / instead take into account remote-tracking
branches for "push" remotes?

> It does not
> guarantee that published commits are not included -- indeed there is no
> way to do that. But, the range is usually large enough to contain the
> desired commits. Also, this mechanism works regardless of whether or not
> branch tracking has been configured.
> 
> So instead of the above command, one can instead use the following:
> 
>  git rebase --fix
> 
> By default, the range is limited to a maximum of 20 commits. This can be
> changed by passing a different number to --fix, e.g.:
> 
>  git rebase --fix=50
> 
> Signed-off-by: Clemens Buchacher <[email-masked]>

Nice idea!

-- 
Jakub Narebski
Poland