Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330019 - eGit ignores .gitignore file in Synch view
Summary: eGit ignores .gitignore file in Synch view
Status: CLOSED DUPLICATE of bug 322454
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-11 11:56 EST by Nick Boldt CLA
Modified: 2013-09-27 12:01 EDT (History)
4 users (show)

See Also:


Attachments
screenshot of synch view disrespecting the .gitignore file (177.29 KB, image/png)
2010-11-11 11:56 EST, Nick Boldt CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Boldt CLA 2010-11-11 11:56:40 EST
Created attachment 182919 [details]
screenshot of synch view disrespecting the .gitignore file

Using Eclipse 3.6 and eGit 0.9.3, I can't get .gitignore file to be respected - see attached screenshot.

---

Meanwhile, commandline, all the .gitignore'd stuff is actually ignored:

$ git status
# On branch master
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#	modified:   target-platform/.gitignore
#
no changes added to commit (use "git add" and/or "git commit -a")

---

Repo being synched is a git-svn checkout of 

http://anonsvn.jboss.org/repos/jbosstools/trunk/build/
Comment 1 Dariusz Luksza CLA 2011-03-05 17:41:32 EST
Nick, can you check it on newest version of EGit. I think that issues with .gitignore was solved since 0.9.3
Comment 2 Dariusz Luksza CLA 2011-06-14 15:45:33 EDT
I think this  should be fixed by now. Could you please check it on 1.0 release?
Comment 3 DJ Houghton CLA 2011-06-29 10:53:16 EDT
Version: 4.1.0
Build id: I20110620-1631
Eclipse EGit 1.1.0.201106282013

I'm seeing this too using the latest e4 build.

I had some JARs in the Sync view and I hit "Ignore" so it created a .gitignore file. At this point I would have expected the JARs to be removed from the view but they weren't. 

When I removed the synchronization from the view and then re-added it, the JARs we not in the view. (as expected)
Comment 4 Jeremy CLA 2011-07-05 21:06:34 EDT
Not sure if I'm seeing *exactly* the same problem or not, or if this is a duplicate of or related to bug 350269 or bug 322454, but I'm seeing similar behavior.

Files added using the "Ignore" menu item or directly edited into .gitignore are not disappearing from the synchronization view until I do a Synchronize Workspace. 


Using EGit 1.0.0.201106090707-r in Eclipse 3.7 (Indigo) build 20110615-0604
Comment 5 Robin Stocker CLA 2013-09-27 12:01:10 EDT

*** This bug has been marked as a duplicate of bug 322454 ***