{"thread":{"id":"45905","subject":"Commits messages numbered only until 10 when squashed","startedAt":"2017-05-08T19:14:22Z","lastAt":"2017-05-08T20:08:45Z","messageCount":2,"participants":["Luciano Moreira","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"319109","messageId":"CAPmMLfj9NYP8LBt8KrMq3-dyTeCvUCheRaUiXtrGv2CG_fGQTw@mail.gmail.com","threadId":"45905","inReplyTo":null,"subject":"Commits messages numbered only until 10 when squashed","fromName":"Luciano Moreira","fromEmail":"lucianomx@gmail.com","sentAt":"2017-05-08T19:13:51Z","receivedAt":"2017-05-08T19:14:22Z","isPatch":false,"sender":{"key":"lucianomx@gmail.com","avatar":null},"body":"Git version: 2.11.0\n\nTHE CASE:\nI have 15 commit to be squashed (the hashes are real, but the commit\nmessages were changed for privacy). When it's rebase interactively\nsquashing all the 15 commits, the numbering goes from 1 to 10 and\nafter it starts again from 1 to 5.\n\n- The first line says \"This is a combination of 5 commits\" but the\nreal amount of commit is 15.\n- #5 coincidentally is the last commit in the concatenated messages to\nbuild the new commit message\n- The order of the commit messages joined were: 1, 2, 3, 4, 5, 6, 7,\n8, 9, 10, 1, 2, 3, 4, 5\n\nWHAT WAS DONE ?\ngit rebase -i 4e4f37c3~1\n\npick 4e4f37c3\ns 72742a70\ns db800d70\ns 2bcd475a\ns 5e5eb85f\ns 4422b1e5\ns af19b0e2\ns 3d64165b\ns faeb2ce9\ns c7dc6b38\ns edeff8d9\ns bd451d5b\ns 851bf828\ns 9cae1f95\ns b79466fb\n\n\nWHEN THE COMMIT MESSAGE IS EDITED: The commit hashes are real, but the\nmessages were changed for privacy.\n\n# This is a combination of 5 commits.\n# This is the 1st commit message:\nTerminal redim Ok.\n\nFix #64\n\n# This is the commit message #2:\n\nScript improved.\n\n\n# This is the commit message #3:\n\nAdded some environment variables.\n\n# This is the commit message #4:\n\nImproved the redim command.\n\n# This is the commit message #5:\n\n+Fix\n\n# This is the commit message #6:\n\nFixed header and footer.\n\n# This is the commit message #7:\n\n+fix\n\n# This is the commit message #8:\n\n+fix\n\n# This is the commit message #9:\n\n+fix\n\n# This is the commit message #10:\n\n+fix\n\n# This is the commit message #1:\n\n+fix\n\n# This is the commit message #2:\n\n+fix\n\n# This is the commit message #3:\n\nChanged some environment variables.\n\n# This is the commit message #4:\n\n+fix\n\n# This is the commit message #5:\n\n+fix\n\n# Please enter the commit message for your changes. Lines starting\n# with '#' will be ignored, and an empty message aborts the commit.\n...\n\n------\nLuciano Moreira\n"},{"id":"319112","messageId":"20170508200836.ijarpzoqdyk4m4jb@sigill.intra.peff.net","threadId":"45905","inReplyTo":"CAPmMLfj9NYP8LBt8KrMq3-dyTeCvUCheRaUiXtrGv2CG_fGQTw@mail.gmail.com","subject":"Re: Commits messages numbered only until 10 when squashed","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2017-05-08T20:08:37Z","receivedAt":"2017-05-08T20:08:45Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, May 08, 2017 at 04:13:51PM -0300, Luciano Moreira wrote:\n\n> Git version: 2.11.0\n> \n> THE CASE:\n> I have 15 commit to be squashed (the hashes are real, but the commit\n> messages were changed for privacy). When it's rebase interactively\n> squashing all the 15 commits, the numbering goes from 1 to 10 and\n> after it starts again from 1 to 5.\n\nThis is fixed already by 356b8ecff (rebase--interactive: count squash\ncommits above 10 correctly, 2017-01-07). It's in v2.11.1.\n\n-Peff\n"}]}