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

rebase autosquash doesn't recognise a chain of fixups

From
Carlos Martín Nieto <cmn@elego.de>
Date
Apr 5, 2011, 15:41 UTC
Message-ID
<20110405154100.GC16031@bee.lab.cmartin.tk>
Hello,
 Say I have the following commits:
    5154127 fixup! fixup! one
    0d130d8 fixup! one
    0869d30 one

because I keep executing `git commit -a --fixup HEAD`. When I want to squash them all into 0869d30, I do `git rebase -i --autosquash 0869d30^` and I get

    pick 0869d30 one
    fixup 0d130d8 fixup! one
    pick 5154127 fixup! fixup! one
when I was hoping for
    pick 0869d30 one
    fixup 0d130d8 fixup! one
    fixup 5154127 fixup! fixup! one

Changing the options to the latter one works (as in, the patches apply). Is this expected? Am I just too lazy and should look up the commit I want to fixup?

   cmn
Next: Vincent van Ravesteijn
Message 1 of 7 in “rebase autosquash doesn't recognise a chain of fixups”
  1. Carlos Martín NietoApr 5, 2011
  2. Vincent van RavesteijnApr 5, 2011
  3. Carlos Martín NietoApr 5, 2011
  4. Junio C HamanoApr 5, 2011
  5. Kevin BallardApr 5, 2011
  6. Junio C HamanoApr 5, 2011
  7. Junio C HamanoApr 5, 2011

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.