From: Marc Strapetz Date: Mon, 27 May 2013 08:32:47 +0000 (+0200) Subject: DirCacheEntry: access to raw path X-Git-Tag: v3.4.0.201405051725-m7~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F56%2F22456%2F3;p=jgit.git DirCacheEntry: access to raw path Change-Id: I5d1f6c4b5b3d7a971367cdd0cc9fa4022dff5b85 Signed-off-by: Marc Strapetz ‌ --- 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 ! */