From: Robin Rosenberg <robin.rosenberg.lists@dewire.com>
To: Galder Zamarreno <galder.zamarreno@redhat.com>
Cc: git@vger.kernel.org, "Shawn O. Pearce" <spearce@spearce.org>,
Florian Koeberle <florianskarten@web.de>,
Marek Zawirski <marek.zawirski@gmail.com>
Subject: Re: [egit-jgit] excluded patterns are decorated as being untracked
Date: Thu, 19 Jun 2008 00:03:36 +0200 [thread overview]
Message-ID: <200806190003.36791.robin.rosenberg.lists@dewire.com> (raw)
In-Reply-To: <48592C88.3080302@redhat.com>
onsdagen den 18 juni 2008 17.40.56 skrev Galder Zamarreno:
> Hmmmm, is marking a resource as "derived" recursive? i.e. if I mark
> "output" folder as derived, would anything under it be considered
> derived? It'd be a pain to go a mark as derived each and every class.
It seems it is not recursive and worse, not saved with the project.
> I suppose you still need the patch to use Team.isIgnoredHint to get
> derived resources to be ignored, correct?
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.
> Hmmmm, so the proper way is either marking resources as derived and use
> your patch or implementing .git/info/exclude, correct?
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
prev parent reply other threads:[~2008-06-18 22:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-17 16:43 [egit-jgit] excluded patterns are decorated as being untracked Galder Zamarreno
2008-06-17 21:16 ` Robin Rosenberg
2008-06-18 4:39 ` Shawn O. Pearce
2008-06-18 15:40 ` Galder Zamarreno
2008-06-18 22:03 ` Robin Rosenberg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200806190003.36791.robin.rosenberg.lists@dewire.com \
--to=robin.rosenberg.lists@dewire.com \
--cc=florianskarten@web.de \
--cc=galder.zamarreno@redhat.com \
--cc=git@vger.kernel.org \
--cc=marek.zawirski@gmail.com \
--cc=spearce@spearce.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).