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

Commits messages numbered only until 10 when squashed

From
LMLuciano Moreira <lucianomx@gmail.com>
Date
May 8, 2017, 19:13 UTC
Message-ID
<CAPmMLfj9NYP8LBt8KrMq3-dyTeCvUCheRaUiXtrGv2CG_fGQTw@mail.gmail.com>
Git version: 2.11.0

THE CASE: I have 15 commit to be squashed (the hashes are real, but the commit messages were changed for privacy). When it's rebase interactively squashing all the 15 commits, the numbering goes from 1 to 10 and after it starts again from 1 to 5.

- The first line says "This is a combination of 5 commits" but the
real amount of commit is 15.
- #5 coincidentally is the last commit in the concatenated messages to
build the new commit message
- The order of the commit messages joined were: 1, 2, 3, 4, 5, 6, 7,
8, 9, 10, 1, 2, 3, 4, 5

WHAT WAS DONE ? git rebase -i 4e4f37c3~1

pick 4e4f37c3 s 72742a70 s db800d70 s 2bcd475a s 5e5eb85f s 4422b1e5 s af19b0e2 s 3d64165b s faeb2ce9 s c7dc6b38 s edeff8d9 s bd451d5b s 851bf828 s 9cae1f95 s b79466fb

WHEN THE COMMIT MESSAGE IS EDITED: The commit hashes are real, but the messages were changed for privacy.

# This is a combination of 5 commits. # This is the 1st commit message: Terminal redim Ok.

Fix #64
# This is the commit message #2:
Script improved.
# This is the commit message #3:
Added some environment variables.
# This is the commit message #4:
Improved the redim command.
# This is the commit message #5:
+Fix
# This is the commit message #6:
Fixed header and footer.
# This is the commit message #7:
+fix
# This is the commit message #8:
+fix
# This is the commit message #9:
+fix
# This is the commit message #10:
+fix
# This is the commit message #1:
+fix
# This is the commit message #2:
+fix
# This is the commit message #3:
Changed some environment variables.
# This is the commit message #4:
+fix
# This is the commit message #5:
+fix

# Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. ...

------ Luciano Moreira

Next: Jeff King
Message 1 of 2 in “Commits messages numbered only until 10 when squashed”
  1. Luciano MoreiraMay 8, 2017
  2. Jeff KingMay 8, 2017

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.