{"thread":{"id":"54733","subject":"What did you do before the bug happened? (Steps to reproduce your issue)","startedAt":"2020-11-30T22:12:46Z","lastAt":"2020-12-01T00:20:10Z","messageCount":2,"participants":["Vojtěch Knyttl","SZEDER Gábor"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"411015","messageId":"CANVGpwZGbzYLMeMze64e_OU9p3bjyEgzC5thmNBr6LttBt+YGw@mail.gmail.com","threadId":"54733","inReplyTo":null,"subject":"What did you do before the bug happened? (Steps to reproduce your issue)","fromName":"Vojtěch Knyttl","fromEmail":"vojtech@knyt.tl","sentAt":"2020-11-30T22:11:20Z","receivedAt":"2020-11-30T22:12:46Z","isPatch":false,"sender":{"key":"vojtech@knyt.tl","avatar":null},"body":"What did you do before the bug happened? (Steps to reproduce your issue)\n\n1. Create a commit with hash-issueId, eg. '#87 Fix wrong indent'\n2. Create a second commit with any commit message.\n3. Use interactive rebase and 'f'ixup the second commit to the first one.\n\nWhat did you expect to happen? (Expected behavior)\n\nI expect a single commit with message: '#87 Fix wrong indent'\n\nWhat happened instead? (Actual behavior)\n\nThere is a commit with empty commit message. This happens without any\nwarning and one notices even too late.\n\nWhat's different between what you expected and what actually happened?\n\nThe commit message disappeared as it was probably treated as a comment.\n\nAnything else you want to add:\n\n[System Info]\ngit version:\ngit version 2.28.0\ncpu: x86_64\nno commit associated with this build\nsizeof-long: 8\nsizeof-size_t: 8\nshell-path: /bin/sh\nuname: Darwin 20.1.0 Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11\nPDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64 x86_64\ncompiler info: clang: 11.0.3 (clang-1103.0.32.62)\nlibc info: no libc information available\n$SHELL (typically, interactive shell): /usr/local/bin/bash\n\n[Enabled Hooks]\npre-commit\n"},{"id":"411020","messageId":"20201201001918.GG8396@szeder.dev","threadId":"54733","inReplyTo":"CANVGpwZGbzYLMeMze64e_OU9p3bjyEgzC5thmNBr6LttBt+YGw@mail.gmail.com","subject":"Re: What did you do before the bug happened? (Steps to reproduce your issue)","fromName":"SZEDER Gábor","fromEmail":"szeder.dev@gmail.com","sentAt":"2020-12-01T00:19:18Z","receivedAt":"2020-12-01T00:20:10Z","isPatch":false,"sender":{"key":"szeder.dev@gmail.com","avatar":"https://avatars.githubusercontent.com/u/116324?v=4"},"body":"\nThanks for your report!\n\nOn Mon, Nov 30, 2020 at 11:11:20PM +0100, Vojtěch Knyttl wrote:\n> What did you do before the bug happened? (Steps to reproduce your issue)\n> \n> 1. Create a commit with hash-issueId, eg. '#87 Fix wrong indent'\n\nNote that to end up with an empty commit message after the fixup it's\nimportant to have a single-line commit message starting with a '#'\ncharacter.\n\n> 2. Create a second commit with any commit message.\n> 3. Use interactive rebase and 'f'ixup the second commit to the first one.\n> \n> What did you expect to happen? (Expected behavior)\n> \n> I expect a single commit with message: '#87 Fix wrong indent'\n\nI agree that this is indeed the desired behavior, because 'git rebase'\nshould not cleanup unmodified commit messages.\n\nIt used to work before 18633e1a22 (rebase -i: use the rebase--helper\nbuiltin, 2017-02-09) (released in v2.13.0), but after that it errored\nout with \"Aborting commit due to empty commit message\" [1].\n\nThe scripted interactive rebase created fixup commits with 'git commit\n--amend --no-verify -F <file>', which uses the 'whitespace' cleanup\nmode, and thus didn't remove comments.  The builtin interactive\nrebase/sequencer, however, invoked 'git commit -n --amend -F <file>\n--cleanup=strip', i.e. it explicitly specified that comments must be\nremoved.\n\n\n[1] The current behavior (i.e. empty commit message instead of that\n    error) is the result of b00bf1c9a8 (git-rebase: make\n    --allow-empty-message the default, 2018-06-27) (released in\n    v2.19.0).\n\n\n\n> What happened instead? (Actual behavior)\n> \n> There is a commit with empty commit message. This happens without any\n> warning and one notices even too late.\n> \n> What's different between what you expected and what actually happened?\n> \n> The commit message disappeared as it was probably treated as a comment.\n> \n> Anything else you want to add:\n> \n> [System Info]\n> git version:\n> git version 2.28.0\n> cpu: x86_64\n> no commit associated with this build\n> sizeof-long: 8\n> sizeof-size_t: 8\n> shell-path: /bin/sh\n> uname: Darwin 20.1.0 Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11\n> PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64 x86_64\n> compiler info: clang: 11.0.3 (clang-1103.0.32.62)\n> libc info: no libc information available\n> $SHELL (typically, interactive shell): /usr/local/bin/bash\n> \n> [Enabled Hooks]\n> pre-commit\n"}]}