* [EGIT PATCH 1/2] Fix merge of subtrees
@ 2007-01-27 23:57 Robin Rosenberg
2007-01-27 23:57 ` [EGIT PATCH 2/2] Show 'StGit/Git' as project decoration Robin Rosenberg
0 siblings, 1 reply; 3+ messages in thread
From: Robin Rosenberg @ 2007-01-27 23:57 UTC (permalink / raw)
To: Shawn Pearce; +Cc: git
Subtrees are sometimes lost in creating the active diff
MergedTree.
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
---
.../src/org/spearce/jgit/lib/MergedTree.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/MergedTree.java b/org.spearce.jgit/src/org/spearce/jgit/lib/MergedTree.java
index 58da5cf..9aba575 100644
--- a/org.spearce.jgit/src/org/spearce/jgit/lib/MergedTree.java
+++ b/org.spearce.jgit/src/org/spearce/jgit/lib/MergedTree.java
@@ -200,7 +200,7 @@ public class MergedTree {
if (cmp <= 0) {
newMerged[pos + srcId] = thisEntry;
- if (thisEntry instanceof Tree) {
+ if (thisEntry instanceof Tree && !mergeCurrentTree) {
if (srcId == 0) {
mergeCurrentTree = true;
} else if (srcId == 1) {
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [EGIT PATCH 2/2] Show 'StGit/Git' as project decoration
2007-01-27 23:57 [EGIT PATCH 1/2] Fix merge of subtrees Robin Rosenberg
@ 2007-01-27 23:57 ` Robin Rosenberg
2007-01-29 6:30 ` Shawn O. Pearce
0 siblings, 1 reply; 3+ messages in thread
From: Robin Rosenberg @ 2007-01-27 23:57 UTC (permalink / raw)
To: Shawn Pearce; +Cc: git
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;
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [EGIT PATCH 2/2] Show 'StGit/Git' as project decoration
2007-01-27 23:57 ` [EGIT PATCH 2/2] Show 'StGit/Git' as project decoration Robin Rosenberg
@ 2007-01-29 6:30 ` Shawn O. Pearce
0 siblings, 0 replies; 3+ messages in thread
From: Shawn O. Pearce @ 2007-01-29 6:30 UTC (permalink / raw)
To: Robin Rosenberg; +Cc: git
Robin Rosenberg <robin.rosenberg@dewire.com> wrote:
> 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.
Thanks; both have been applied and pushed.
I *really* need to stop hacking on git-gui and work on egit again...
--
Shawn.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-01-29 6:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-27 23:57 [EGIT PATCH 1/2] Fix merge of subtrees Robin Rosenberg
2007-01-27 23:57 ` [EGIT PATCH 2/2] Show 'StGit/Git' as project decoration Robin Rosenberg
2007-01-29 6:30 ` Shawn O. Pearce
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).