Cedric van den Berg Cedric van den Berg - 1 month ago 8
Git Question

EGit - Committing java documentation

I'm using EGit with GitHub.

When I commit and push the code with EGit to GitHub it shows only the code without the javadoc.

Is there a preference in EGit to turn this off? (to export all of the code)

In Eclipse:

http://www.xlp-now.de/webspace/stackoverflow/commitJavaDoc/IconLoaderEclipse.png

In GitHub:

http://www.xlp-now.de/webspace/stackoverflow/commitJavaDoc/IconLoaderGitHub.png

Answer

Is there a preference in egit to turn this off? (to export all of the code)

No: unless you have a clean content filer (in a .gitattributes files), and text file will be pushed in its entirety to GitHub.

The OP Cedric van den Berg reports in the comments solving the issue with the filters:

$ git config --global filter.indent.clean indent
$ git config --global filter.indent.smudge cat 
Comments