Re: [PATCH 4/7] git-rebase--interactive.sh: look up subject in add_pick_line
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 22, 2012, 20:51 UTC
- Message-ID
- <7v4nozr030.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CAOeW2eHeySzEzj_8BByuz4jrc_CreLtZpTshcYsTxqBrtxyg0g@mail.gmail.com>
Martin von Zweigbergk <martin.von.zweigbergk@gmail.com> writes:
Show 8 quoted lines
> After patch 7/7, cherry is used instead of rev-list. Ideally, I would > have liked to teach "git rev-list --cherry-pick" to somehow use a > <limit> just like cherry does, but I couldn't think of a generic way > of doing that (in this case, we want to say something like "range > a..b, but drop commits that are equivalent to any in b..c"). I > actually don't remember if I gave up because I couldn't think of a > sensible way of specifying ranges like that, or if I just ran out of > time (not familiar with the revision-walking code).
Why not use patch-id output instead, then? Grab patch-id for commits b..c to make a mapping from patch-id to commits, do the same for a..b and use the mapping to filter?