Re: How to rebase when some commit hashes are in some commit messages
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Oct 18, 2015, 16:23 UTC
- Message-ID
- <CACBZZX5K775B=w_RtwCowPoK54ZcL43WO5gTLrmAc8p8=D7Jxg@mail.gmail.com>
- In-Reply-To
- <561C1132.3090606@orange.fr>
On Mon, Oct 12, 2015 at 9:59 PM, Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> wrote:
Show 12 quoted lines
> Hello, > > [I try some search engines without success, perhaps I have missed something]. > > For example, if I rebase the following commits, I would want that if > the commit hash 2222222... become 7777777..., > the message > "Update test output for 2222222222222222222222222222222222222222" > become > "Update test output for 7777777..." > > Is it possible currently? And if yes how?
This isn't strictly speaking an answer to your question (others have done that), but in my workflow if I have a patch series where I want to refer to commits inside the series, and I know I'm going to rebase it I work around this by just using the subject line of the commit as an ID.
E.g. in the message I'll say something like "See my 'commit.c: Avoid segfaults on OSX' commit for details". Then I can just find that with git log --grep.