[EGIT PATCH 3/3] Present full name of file revision
The name need not be a path.
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
---
.../core/internal/storage/GitFileRevision.java | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/org.spearce.egit.core/src/org/spearce/egit/core/internal/storage/GitFileRevision.java b/org.spearce.egit.core/src/org/spearce/egit/core/internal/storage/GitFileRevision.java
index 21ba19e..c762e2e 100644
--- a/org.spearce.egit.core/src/org/spearce/egit/core/internal/storage/GitFileRevision.java
+++ b/org.spearce.egit.core/src/org/spearce/egit/core/internal/storage/GitFileRevision.java
@@ -32,7 +32,7 @@
/**
* Obtain a file revision for a specific blob of an existing commit.
- *
+ *
* @param db
* the repository this commit was loaded out of, and that this
* file's blob should also be reachable through.
@@ -56,8 +56,7 @@ GitFileRevision(final String fileName) {
}
public String getName() {
- final int last = path.lastIndexOf('/');
- return last >= 0 ? path.substring(last + 1) : path;
+ return path;
}
public boolean isPropertyMissing() {
--
1.6.1.rc3.56.gd0306