1
0
mirror of https://github.com/github/gitignore synced 2025-01-11 14:14:41 +01:00
Carl Suster 8bc0e535bb Merge Pull Request #1338 for Eclipse
Fixes #1217.

Once again ignore .classpath and .project in the Eclipse template. This has
been requested in multiple PRs such as #1338 and #1221 and is essentially a
reversion of #805. I copy the explanation for this change from the discussion
in #1217 by @segfly:

*In short*:

I can't point to any counter-documentation off the top of my head. I just know
from experience these files pollute a project's repo without adding value
- that is, unless everyone contributing is using Eclipse and no-one is using
dependency management. And even then, the guidance provided by the eclipse docs
is bad advice.

*In Long*:

The .classpath file is used by Eclipse to maintain the project's classpath
during automatic compile (every save of a file). In the olden days, one would
manually configure the project within the Eclipse UI and include all the
dependent jars necessary to compile your project. Eclipse then wrote that
configuration out to the .classpath file.

In theory, this file could be shared with others so they did not have to
manually configure their eclipse classpath. In practice, I never saw it work
out quite so well due to eventual bloating of the classpath with needless jars
or jars that only existed on one person's machine. Mind you, many people back
then also used to check their dependent jars into version control along with
their source.

Dependency management tools like Gradle and Maven have done away with all that
of course. But they also integrate nicely with Eclipse and manage the project
classpath dynamically. The .classpath file is basically rebuilt based on
changes to the build.gradle file or pom.xml file. Effectively, this renders the
whole point of checking in the .classpath moot as it is easily rebuilt by the
Maven or Gradle plugin.

The .project file is another animal completely. It basically describes what
plugins should be applied to the project as configured in the Eclipse UI. Again
the theory is it could be shared and creates a happy world. But due to
different eclipse versions people may have, different plugins installed, etc.
sharing the .project file actually causes more issues. And I've seen many
projects unable to open due to a bad .project file - requiring one to delete it
anyway (which then of course, when someone recreates it, they inevitably check
it in over the old one and end up breaking someone else's environment).

The bottom line is, regardless of what the eclipse documentation says, these
are very much internal configuration files for eclipse and best left out of
a repo.
2015-01-15 11:41:35 +11:00
2014-03-27 17:04:56 +01:00
2013-08-15 03:18:55 +02:00
2015-01-07 19:40:23 +05:30
2014-11-23 16:59:38 +01:00
2011-02-21 18:02:55 -08:00
2014-04-23 16:02:01 -05:00
2014-04-23 16:02:01 -05:00
2013-10-06 14:40:01 +02:00
2014-09-17 21:31:39 -07:00
2014-12-01 23:08:13 +03:00
2014-03-27 17:04:56 +01:00
2014-03-24 17:14:52 +01:00
2012-08-15 01:43:20 +02:00
2014-05-04 18:27:23 +02:00
2014-03-27 17:04:56 +01:00
2011-08-17 00:55:26 -05:00
2014-06-06 16:53:21 +03:00
2014-09-08 00:52:39 -04:00
2014-02-27 21:51:51 -05:00
2014-12-03 11:33:11 +01:00
2014-01-18 10:29:50 +01:00
2013-07-25 06:18:55 -07:00
2014-09-06 16:10:32 +02:00
2010-11-09 04:49:58 +08:00
2014-06-24 10:56:38 -05:00
2014-09-02 15:51:10 +10:00
2014-02-13 15:57:44 +02:00
2014-03-31 02:52:46 +02:00
2014-12-30 17:23:11 -05:00
2015-01-02 01:38:25 +01:00
2012-03-03 02:08:17 +01:00
2014-04-08 18:48:50 +03:00
2014-03-09 14:35:00 +09:00
2013-01-07 21:25:52 -08:00
2013-11-12 15:09:20 +07:00
2014-04-23 20:46:03 +09:00
2014-03-07 00:15:40 +11:00
2014-11-06 09:27:27 +02:00
2014-10-19 08:59:24 -02:00
2013-12-17 15:06:57 +08:00
2013-10-06 14:40:01 +02:00
2012-07-31 11:57:21 +08:00
2014-07-23 19:23:20 -03:00
2014-09-02 11:12:15 +02:00
2015-01-13 09:40:43 +01:00
2014-09-29 16:31:58 +02:00
2014-03-27 17:04:56 +01:00
2010-11-22 17:54:05 -08:00
2014-06-19 15:01:02 -07:00
2014-09-14 11:54:56 -04:00
2013-10-21 16:20:37 +11:00
2014-06-21 20:02:16 +04:00

A collection of .gitignore templates

This is GitHubs collection of .gitignore file templates. We use this list to populate the .gitignore template choosers available in the GitHub.com interface when creating new repositories and files.

For more information about how .gitignore files work, and how to use them, the following resources are a great place to start:

Folder structure

The files in the root directory are for .gitignore templates that are project specific, such as language or framework specific templates. Global (operating system or editor specific) templates should go into the Global/ directory.

Contributing guidelines

Wed love you to help us improve this project. To help us keep this collection high quality, we request that contributions adhere to the following guidelines.

  • Provide a link to the application or projects homepage. Unless its extremely popular, theres a chance the maintainers dont know about or use the language, framework, editor, app, or project your change applies to.

  • Provide links to documentation supporting the change youre making. Current, canonical documentation mentioning the files being ignored is best. If documentation isnt available to support your change, do the best you can to explain what the files being ignored are for.

  • Explain why youre making a change. Even if it seems self-evident, please take a sentence or two to tell us why your change or addition should happen. Its especially helpful to articulate why this change applies to everyone who works with the applicable technology, rather than just you or your team.

  • Please consider the scope of your change. If your change specific to a certain language or framework, then make sure the change is made to the template for that language or framework, rather than to the template for an editor, tool, or operating system.

  • Please only modify one template per pull request. This helps keep pull requests and feedback focused on a specific project or technology.

In general, the more you can do to help us understand the change youre making, the more likely well be to accept your contribution quickly.

Please also understand that we cant list every tool that ever existed. Our aim is to curate a collection of the most common and helpful templates, not to make sure we cover every project possible. If we choose not to include your language, tool, or project, its not because its not awesome.

Contributing workflow

Heres how we suggest you go about proposing a change to this project:

  1. Fork this project to your account.
  2. Create a branch for the change you intend to make.
  3. Make your changes to your fork.
  4. Send a pull request from your forks branch to our master branch.

Using the web-based interface to make changes is fine too, and will help you by automatically forking the project and prompting to send a pull request too.

License

MIT.

Description
No description provided
Readme
Languages
Markdown 100%