Re: [PATCH 1/2] commit: add message options for rebase --autosquash
- From
Bryan Drewery <bryan@shatow.net>
- Date
- Sep 17, 2010, 17:47 UTC
- Message-ID
- <4C93A9B9.2060401@shatow.net>
- In-Reply-To
- <AANLkTimBnzWQYy8z1duQw=4UL4YCaeyiMugXG1O-Q8yq@mail.gmail.com>
Show 10 quoted lines
>>>> These options make it convenient to construct commit messages for use
>>>> with 'rebase --autosquash'. The resulting commit message will be
>>>> "fixup! ..." or "squash! ..." where "..." is the subject line of the
>>>> specified commit message.
>>>>
> `git fixup' is aliased to `!f() { git commit -m "$(git show -s
> --pretty='format:fixup! %s%n%nFixup for %h%n' "$1")" $2; }; f'
> `git squash' is aliased to `!f() { git commit -m "$(git show -s
> --pretty='format:squash! %s%n%n' "$1")" -e $2; }; f'
> Thanks.
I had missed that this was for the commit message. Thought it was doing the rebase as well.
Bryan