I don't use Eclipse, but I was able to find this:

If you use Eclipse CDT, you can set a preference to always make sure there
> is a newline. Go to Window->Preferences->C/C++->Editor and mark the checkbox
> next to "Ensure newline at end of file when saving"

.That setting might not exist outside of the C/C++ config though...

    Tekkub
    Github Tech Support
    http://support.github.com/
    Join us on IRC: #github on freenode.net
    Discussion group: [email protected]


On Sat, Aug 15, 2009 at 2:08 PM, Galaxy <[email protected]> wrote:

>
> When commit I see the message:
>
> No newline at end of file
>
> I think this is more of an issue with the Eclipse default editor not
> adding the newline, but I can't seem to figure out how to get it to do
> that. I've tried selecting the text manually and retyping but I get
> the same message.
>
> I searched the web but could not find the document explaining how to
> fix this problem.
>
> How can I get Eclipse to add a newline to the end of the file, so that
> Git can be happy?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GitHub" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/github?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to