git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Peter Krefting
Message 2 of 2 in “Allow hashes in git rebase --interactive --autosquash.”
  1. Allow hashes in git rebase --interactive --autosquash.Peter Krefting, Jun 17, 2010
  2. Jay SoffianJun 17, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.