Re: [PATCH] cherry-pick: Add an option to prepend a string to the commit message
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 14, 2010, 18:03 UTC
- Message-ID
- <7vk4q1a3ud.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20100612071850.GA2765@burratino>
Jonathan Nieder <jrnieder@gmail.com> writes:
Show 5 quoted lines
> +git checkout maint && > +git cherry-pick -n bugfix && > +git add new_file.txt && > +git show -s bugfix --format='%s%n%n%b%n%nAlso add a new file.' | > +git commit -F -
This is cute, I somehow doubt any sane person would prefer doing the above over running "git commit" and fixing it up with the editor for a single commit.
It is completely a different matter if the above were in a loop that munges many commits, though. But if that is the case, the example should probably illustrate that loop as well.