git rebase -i and final newline
- From
Steven Penny <svnpenn@gmail.com>
- Date
- Oct 26, 2012, 02:09 UTC
- Message-ID
- <CAAXzdLUvDkdPJqF+xgnZ51LQ-vfB1Jea5Pf9PvRS+qHx1+RZuw@mail.gmail.com>
Sorry if I am drumming up and old issue here. I have noticed that with "git rebase -i", if your final line contains a commit and no newline, git interprets that as "remove this commit please".
I feel that a commit should be removed only if the entire line is removed, that is the commit hash and title as well as the newline.
I have noticed that the behavior is "correct" with "git commit". Even if you omit the final newline after the commit message body, all text lines will be included.