Bug 387594 - Add "target" folders to .gitignore
Summary: Add "target" folders to .gitignore
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Releng (show other bugs)
Version: 1.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Thanh Ha CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 414236 414238 414239 414240 414242 414245 414246 414247 414248 414249 414250 414252
Blocks:
  Show dependency tree
 
Reported: 2012-08-20 08:57 EDT by Aaron Digulla CLA
Modified: 2013-09-26 15:17 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Digulla CLA 2012-08-20 08:57:11 EDT
Please add Maven's "target" folders to .gitignore in all subprojects.

Current, when I run "git status", I get:

# On branch Juno_RC4_R4
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#   (commit or discard the untracked or modified content in submodules)
#
#       modified:   eclipse.jdt (untracked content)
#       modified:   eclipse.jdt.core (modified content, untracked content)
#       modified:   eclipse.jdt.debug (untracked content)
#       modified:   eclipse.jdt.ui (untracked content)
#       modified:   eclipse.pde (untracked content)
...

and when I run "git status" in "eclipse.jdt/", i see:

# Not currently on any branch.
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       org.eclipse.jdt-feature/target/
#       org.eclipse.jdt/target/
nothing added to commit but untracked files present (use "git add" to track)

This is confusing.
Comment 1 Thanh Ha CLA 2013-07-31 10:31:50 EDT
Moving to Platform for consideration.

This is pretty simple to do and already exists for the aggregator repo, but I guess we'll need to create patches for all the sub-repos.

I'll look into creating the patches when I have a few extra cycles.
Comment 2 Thanh Ha CLA 2013-07-31 10:32:43 EDT
I think we just need to add "target/" to ensure that it's ignoring only the directory.
Comment 3 Paul Webster CLA 2013-07-31 11:18:36 EDT
(In reply to comment #2)
> I think we just need to add "target/" to ensure that it's ignoring only the
> directory.

It has to be done on a repo by repo basis, because they're not all the same level and a generic "ignore any target" directory will ignore real directories in some repos

PW
Comment 4 Thanh Ha CLA 2013-09-26 15:17:51 EDT
Looks like this is resolved.