Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 438876

Summary: Update gitignore to only target some subdirectories and files
Product: [ECD] Orion Reporter: Paul Webster <pwebster>
Component: ServerAssignee: Anthony Hunter <ahunter.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ahunter.eclipse
Version: 6.0Flags: pwebster: review?
Target Milestone: 9.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Paul Webster CLA 2014-07-03 14:59:19 EDT
Sometimes having more general entries like "target" can filter out subdirectories that are desired.  I also see may file.txt~ and *.bak files in git, and they can be filtered out.

PW
Comment 1 Paul Webster CLA 2014-07-03 15:00:36 EDT
Gerrit review for orion.server: https://git.eclipse.org/r/29422

PW
Comment 2 Paul Webster CLA 2014-07-03 15:04:47 EDT
Review for orion.client: https://git.eclipse.org/r/29423

PW
Comment 3 Anthony Hunter CLA 2014-07-04 14:25:47 EDT
(In reply to Paul Webster from comment #0)
> Sometimes having more general entries like "target" can filter out
> subdirectories that are desired.  [snip]
> 
> PW

I am not sure what target folder you actually do want in git. Is there one?

I think the problem here is that we have a .gitignore at the root of the git repo that is perhaps conflicting with the .gitignore files in some of the Eclipse projects (same level as the .project files) (?) .
Comment 4 Paul Webster CLA 2014-07-04 14:36:29 EDT
(In reply to Anthony Hunter from comment #3)
> 
> I am not sure what target folder you actually do want in git. Is there one?

The .gitignore in the root of the repo looks like:
/.project
bin
target
workspace

Just specifying "target" will filter any target directory, including if you use one as a java package.

The target directories are to maven what bin directories are to eclipse, they show up if you use maven to build.  My proposal makes them more specific:
/*/*/target

Same thing for the bin directory.

PW
Comment 5 Anthony Hunter CLA 2015-05-08 09:17:57 EDT
I am satisfied with the .gitignore settings now.