Re: [PATCH] Allow hashes in git rebase --interactive --autosquash.
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Jun 17, 2010, 13:17 UTC
- Message-ID
- <AANLkTikJtNXg7Eac5CQkMBXt14tu8G7Kaxy-3t1wmhBF@mail.gmail.com>
- In-Reply-To
- <20100617125746.E86B42FC00@perkele>
On Thu, Jun 17, 2010 at 8:55 AM, Peter Krefting <peter@softwolves.pp.se> wrote:
Show 12 quoted lines
> In addition to matching the "fixup!" and "squash!" commits to the commit > message, also match the commit hash. This allows a commit message like > "fixup! e83c5163316f89bfbde7d9ab23ca2e25604af290" to be detected as a > fixup commit. > > Signed-off-by: Peter Krefting <peter@softwolves.pp.se> > --- > > I actually misread the git-rebase manual page to think that this was how > "fixup!" and "squash!" was supposed to be used, and now I have so many > "fixup! <hash>" commits to rebase that I felt it worth it to implement > support for it... :-)
Heh. I have this alias for creating my fixup commits:
$ git help fixup `git fixup' is aliased to `!f() { git commit -m "$(git show -s --pretty='format:fixup! %s%n%nFixup for %h%n' "$@")"; }; f'
:-)
j.