On Wed, 20 Jan 2021 at 03:35, Marc Branchaud <marcnarc@xxxxxxxxxxx> wrote: [...] > I'm also under the impression that the "fixup -C/-c" commit's patch is > still incorporated into the folded commit. Is that right? > yes, it's still incorporated into the folded commit, as it just adds options to the `fixup` command to replace or edit the commit message. > So I think the documentation could be improved. Assuming that a "fixup > -C/-c" commit's patch is incorporated just like with plain "fixup", > something like: > > The suggested commit message for the folded commit is the concatenation > of the first commit's message with those identified by "squash" > commands, omitting the messages of commits identified by "fixup" > commands, `unless` "fixup -c" is used. In that case the suggested > commit message is `only` the message of the "fixup -c" commit, and an > editor is opened allowing you to edit the message. The contents (patch) > of the "fixup -c" commit are still incorporated into the folded commit. > If there is more than one "fixup -c" commit, the message from the last > last one is used. You can also use "fixup -C" to get the same behavior > as "fixup -c" except without opening an editor. > I agree, this is now more clear and explains for more than one `fixup [-C|-c]` or `squash` command also. Thanks for the suggestions, I will change this in the next revision. Thanks and Regards, Charvi