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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---

 .../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;
 	}
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]