Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337566 - "Add" command does not add empty directories
Summary: "Add" command does not add empty directories
Status: CLOSED WONTFIX
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-18 08:55 EST by Kay Huber CLA
Modified: 2011-02-21 08:38 EST (History)
1 user (show)

See Also:


Attachments
Screenshot of the two projects being tracked except the HelloWorld/src folder (16.72 KB, image/png)
2011-02-18 08:56 EST, Kay Huber CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kay Huber CLA 2011-02-18 08:55:53 EST
Steps to reproduce:

* On empty workspace, create two java projects "HelloWorld", "HelloWorld2"
* Share both projects in a (local) git repository
* In HelloWorld2 create a class "Test" in the "src" folder
* In Package Explorer, select both projects, right click and click "Team" > "Add"

Result: 
* HelloWorld2 is getting tracked completely (including metadata files like .classpath, .project as well as src folder and Test.java source file)
* HelloWorld itself (as well as metadata files like .classpath, .project etc.) is getting tracked
* HelloWorld/src (which is empty) is *not* tracked

See screenshot for a quick glimpse on the examples result.

Is that intentional?
Comment 1 Kay Huber CLA 2011-02-18 08:56:46 EST
Created attachment 189273 [details]
Screenshot of the two projects being tracked except the HelloWorld/src folder
Comment 2 Stefan Lay CLA 2011-02-21 08:38:13 EST
This is intentional. Git does not track directories. It tracks file content.