# git rebase -i and final newline

1 messages from 2012-10-26 to 2012-10-26. Participants: Steven Penny.
Thread: https://gitlist.dev/t/31947

## Steven Penny, 2012-10-26 02:09

Subject: git rebase -i and final newline
Message-ID: <CAAXzdLUvDkdPJqF+xgnZ51LQ-vfB1Jea5Pf9PvRS+qHx1+RZuw@mail.gmail.com>
URL: https://gitlist.dev/e/CAAXzdLUvDkdPJqF%2BxgnZ51LQ-vfB1Jea5Pf9PvRS%2BqHx1%2BRZuw%40mail.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.

```
