From c5dfc2317c66aed7271d60055f8361477de5d2aa Mon Sep 17 00:00:00 2001 From: Marc Strapetz Date: Mon, 27 May 2013 10:32:47 +0200 Subject: [PATCH] DirCacheEntry: access to raw path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I5d1f6c4b5b3d7a971367cdd0cc9fa4022dff5b85 Signed-off-by: Marc Strapetz ‌ --- .../src/org/eclipse/jgit/dircache/DirCacheEntry.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java index aa48c60414..5df5c8d1a0 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java @@ -634,6 +634,15 @@ public class DirCacheEntry { return toString(path); } + /** + * Get a copy of the entry's raw path bytes. + * + * @return raw path bytes. + */ + public byte[] getRawPath() { + return path.clone(); + } + /** * Use for debugging only ! */ -- 2.39.5