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

[EGIT PATCH 2/2] Show 'StGit/Git' as project decoration

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
Jan 27, 2007, 23:57 UTC
Message-ID
<20070127235724.26097.38563.stgit@lathund.dewire.com>
In-Reply-To
<20070127235718.26097.74542.stgit@lathund.dewire.com>

Git is spelled like this as is StGit. Since we have some support for Stacked Git in the quickdiff code, we should also tell the user if we are in StGit mode or plain Git mode.

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
---
 .../internal/decorators/GitResourceDecorator.java  |    5 ++++-
 1 files changed, 4 insertions(+), 1 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 60ebd2d..45563da 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
@@ -62,7 +62,10 @@ public class GitResourceDecorator extends LabelProvider implements
 
 	RepositoryMapping mapped = d.getRepositoryMapping(rsrc);
 	if (mapped != null) {
-	    decoration.addSuffix(" [GIT]");
+	    if (mapped.getRepository().isStGitMode())
+		decoration.addSuffix(" [StGit]");
+	    else
+		decoration.addSuffix(" [Git]");
 	    decoration.addOverlay(UIIcons.OVR_SHARED);
 	    return;
 	}
Previous: Robin RosenbergNext: Shawn O. Pearce
Message 2 of 3 in “Fix merge of subtrees”
  1. 1/2 Fix merge of subtreesRobin Rosenberg, Jan 27, 2007
  2. 2/2 Show 'StGit/Git' as project decorationRobin Rosenberg, Jan 27, 2007
  3. Shawn O. PearceJan 29, 2007

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.