git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Check content if necessary when decorations want to know status

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Jun 9, 2008, 22:50 UTC
Message-ID
<1213051816-4046-6-git-send-email-robin.rosenberg.lists@dewire.com>
In-Reply-To
<1213051816-4046-5-git-send-email-robin.rosenberg.lists@dewire.com>
From: Robin Rosenberg <robin.rosenberg@dewire.com>
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 10e740e..4b6394c 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
@@ -310,7 +310,7 @@ public class GitResourceDecorator extends LabelProvider implements
 
 						decoration.addOverlay(UIIcons.OVR_SHARED);
 
-						if (entry.isModified(mapped.getWorkDir())) {
+						if (entry.isModified(mapped.getWorkDir(), true)) {
 							decoration.addPrefix(">");
 							decoration.addSuffix("(not updated)");
 							orState(rsrc.getParent(), CHANGED);
-- 
1.5.5.1.178.g1f811
Previous: Robin RosenbergNext: Robin Rosenberg
Message 6 of 11 in “[EGIT PATCHES] Assorted minor fixes”
  1. Robin RosenbergJun 9, 2008
  2. Reset the graph plotter internals when HEAD has changed.Robin Rosenberg, Jun 9, 2008
  3. Make it possible to create a new Git repository in project parent directory.Robin Rosenberg, Jun 9, 2008
  4. Fix a typo.Robin Rosenberg, Jun 9, 2008
  5. Drop an unused empty menu contribution.Robin Rosenberg, Jun 9, 2008
  6. Check content if necessary when decorations want to know statusRobin Rosenberg, Jun 9, 2008
  7. Fix the context menu connection to the workbenchRobin Rosenberg, Jun 9, 2008
  8. Add a Track toolbar icon for adding resourcesRobin Rosenberg, Jun 9, 2008
  9. Shawn O. PearceJun 10, 2008
  10. Shawn O. PearceJun 10, 2008
  11. Robin RosenbergJun 10, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.