Re: [RFC] Interactive-rebase doesn't pick all children of "upstream"
- From
- Andrew Wong <andrew.w@sohovfx.com>
- Date
- May 21, 2011, 07:34 UTC
- Message-ID
- <4DD76AFD.8040504@sohovfx.com>
- In-Reply-To
- <1305957078-19111-2-git-send-email-andrew.kw.w@gmail.com>
On 11-05-21 1:51 AM, Andrew Wong wrote:
Show 11 quoted lines
> preserve=t > for p in $(git rev-list --parents -1 $sha1 | cut -d' ' -s -f2-) > do > - if test -f "$rewritten"/$p -a \( $p != $onto -o $sha1 = $first_after_upstream \) > + if test -f "$rewritten"/$p&& ( > + test $p != $onto || > + expr "$commits_after_upstream" ":" ".*$sha1.*" > + ) > then > preserve=f > fi
Actually, I think this change might be effectively the same as removing both of the OR-conditions, which leaves only the "test -f" condition. That means commits are never skipped.
I guess this goes back to my first response to this issue. What kind of commits are skipped by the changes introduced in commit d80d6bc146232d81f1bb4bc58e5d89263fd228d4 ?