Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328428 - EGit doesn't follow .git/info/excludes or the core.excludesfile config variable
Summary: EGit doesn't follow .git/info/excludes or the core.excludesfile config variable
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement with 6 votes (vote)
Target Milestone: 0.11   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 324363 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-10-22 01:21 EDT by Luke Maurer CLA
Modified: 2012-04-26 19:15 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Maurer CLA 2010-10-22 01:21:48 EDT
Build Identifier: M20100909-0800

As of the fixing of #300964, EGit honors .gitignore (thanks!), but it doesn't also consult .git/info/excludes or any files listed in a file specified in the core.excludesfile config variable. This is inconsistent with Git behavior.

Reproducible: Always

Steps to Reproduce:
1. Add a filename to .git/info/excludes, but not to .gitignore
2. Alter or create the named file
3. Compare the output of "git status" on the command line with the EGit icon label on the file

EGit shows the file as dirty, whereas Git honors the entry in .git/info/excludes  and omits it from the list of changed files.

4. Add a file to the core.excludesfile config option (say, by running "git config --add core.excludesfile .moregitignore")
5. Repeat steps #1-3 using this file instead of .git/info/excludes

Again, EGit and Git are inconsistent.
Comment 1 Trask Stalnaker CLA 2011-01-10 17:34:44 EST
Also it is not checking .gitignore in parent folder(s), e.g. if using .gitignore in repository root, with eclipse project in a subdirectory, EGit is not honoring the .gitignore in repository root.
Comment 2 Chris Aniszczyk CLA 2011-01-10 17:36:10 EST
I'll look at this for 0.11... this is the last hole for .gitignore support
Comment 3 Matthias Sohn CLA 2011-02-23 19:06:09 EST
jgit commit e703b6c640f7b8b4aee84ce2661fce1da281d926 adds jgit support for core.excludesfile and fixes path resolution on cygwin

Proposed http://egit.eclipse.org/r/#change,2576 to teach egit to respect ignore rules defined in .git/info/exclude and the file with the path specified by configuration parameter core.excludesfile.

Proposed http://egit.eclipse.org/r/#change,2577 to fix decorator to never mark tracked files as ignored.
Comment 4 Matthias Sohn CLA 2011-06-07 20:21:18 EDT
merged as 4dea00dcb599aef7fedb891cdae2f6c084ba08fb
and 26151102373685482816da55a1f956d9d95c381c
Comment 5 Robin Rosenberg CLA 2012-04-26 19:15:58 EDT
*** Bug 324363 has been marked as a duplicate of this bug. ***