Re: [egit-jgit] excluded patterns are decorated as being untracked

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Galder Zamarreno <galder.zamarreno@...>
Cc: <git@...>, Shawn O. Pearce <spearce@...>, Florian Koeberle <florianskarten@...>, Marek Zawirski <marek.zawirski@...>
Date: Wednesday, June 18, 2008 - 6:03 pm

onsdagen den 18 juni 2008 17.40.56 skrev Galder Zamarreno:

It seems it is not recursive and worse, not saved with the project.


You'll need another patch for the decorator to pick up derived resources
properly. Probably not the final solution to decorations. For one thing the
decorators are horribly inefficient.


I'd say implementing .git/info/exlude is the proper solution. The others are
mere workarounds.

-- robin

From 7acc0e63886ed8eda6b38a5edbfe9a6aa4d509dc Mon Sep 17 00:00:00 2001
From: Robin Rosenberg <robin.rosenberg@dewire.com>
Date: Wed, 18 Jun 2008 23:50:42 +0200
Subject: [PATCH] Decorate derived resources as ignored.

This is done by using the appropriate API.

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
---
 .../internal/decorators/GitResourceDecorator.java  |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java
index 4b6394c..0308f6a 100644
--- a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java
+++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java
@@ -273,8 +273,7 @@ public class GitResourceDecorator extends LabelProvider implements
 							}
 
 						} else {
-							if (rsrc.getType() == IResource.FILE
-									&& Team.isIgnored((IFile) rsrc)) {
+							if (Team.isIgnoredHint(rsrc)) {
 								decoration.addSuffix("(ignored)");
 							} else {
 								decoration.addPrefix(">");
-- 
1.5.5.1.178.g1f811
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[egit-jgit] excluded patterns are decorated as being untrack..., Galder Zamarreno, (Tue Jun 17, 12:43 pm)
Re: [egit-jgit] excluded patterns are decorated as being unt..., Galder Zamarreno, (Wed Jun 18, 11:40 am)
Re: [egit-jgit] excluded patterns are decorated as being unt..., Robin Rosenberg, (Wed Jun 18, 6:03 pm)