Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Why do (all) eclipse projects have a .gitignore per plug-in project?
Why do (all) eclipse projects have a .gitignore per plug-in project? [message #1403272] Mon, 21 July 2014 14:33 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 295
Registered: March 2012
Senior Member
Hi,

So we have this discussion going on about one .gitignore at the repo
root vs one .gitignore per plug-in/feature project.

I saw that all (at least all that I have looked at) eclipse projects use
the one .gitignore per plug-in approach. Is there any specific reason to
favor this approach over the other? At a first look, one .gitignore per
plug-in project seems to be lots of redundant information, no?

I thought that the only reason was that EGit wouldn't honor the
..gitignore contents if it's located outside the .project, but that
doesn't seem to be true (any more?).

Thanks for hints,
Felix
Re: Why do (all) eclipse projects have a .gitignore per plug-in project? [message #1403382 is a reply to message #1403272] Wed, 23 July 2014 11:24 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
AFAIK EGit supports .gitignore in the root of the working tree since JGit added support for gitignore.
Re: Why do (all) eclipse projects have a .gitignore per plug-in project? [message #1403533 is a reply to message #1403382] Thu, 24 July 2014 10:07 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 295
Registered: March 2012
Senior Member
On 23/07/2014 13:24, Matthias Sohn wrote:
> AFAIK EGit supports .gitignore in the root of the working tree since
> JGit added support for gitignore.
>

So probably all the .gitignores were just automatically added by EGit
and maintainers didn't worry about merging them into just one .gitignore
at their repo root?

Felix
Re: Why do (all) eclipse projects have a .gitignore per plug-in project? [message #1403551 is a reply to message #1403533] Thu, 24 July 2014 11:12 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
EGit auto-ignores derived resources if the Preference
"Team > Git > Projects > Automatically ignored derived resources by adding them to .gitignore"
is switched on and the platform sends events that derived resources have been created
(typically triggered by the build).
Previous Topic:Getting changed files from commitId(SHA-1)
Next Topic:Commit single file or single project only
Goto Forum:
  


Current Time: Tue Apr 16 18:17:32 GMT 2024

Powered by FUDForum. Page generated in 0.78965 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top