diff options
author | Nasser Grainawi <quic_nasserg@quicinc.com> | 2021-02-10 22:42:41 -0700 |
---|---|---|
committer | Nasser Grainawi <quic_nasserg@quicinc.com> | 2021-02-10 22:46:15 -0700 |
commit | efb154fc24fbf416ae3513942fa720128358b31b (patch) | |
tree | 99a021500bc38bb27c8579a2d93fe547ad22b2ea /org.eclipse.jgit.http.server | |
parent | fe4b2a46563ec2006106ee2318dbf27dfcdef3c5 (diff) | |
download | jgit-efb154fc24fbf416ae3513942fa720128358b31b.tar.gz jgit-efb154fc24fbf416ae3513942fa720128358b31b.zip |
Rename PackFile to Pack
Pack better represents the purpose of the object and paves the way to
add a PackFile object that extends File.
Change-Id: I39b4f697902d395e9b6df5e8ce53078ce72fcea3
Signed-off-by: Nasser Grainawi <quic_nasserg@quicinc.com>
Diffstat (limited to 'org.eclipse.jgit.http.server')
-rw-r--r-- | org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/InfoPacksServlet.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/InfoPacksServlet.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/InfoPacksServlet.java index c3d72552a5..e90580b75f 100644 --- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/InfoPacksServlet.java +++ b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/InfoPacksServlet.java @@ -20,7 +20,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.eclipse.jgit.internal.storage.file.ObjectDirectory; -import org.eclipse.jgit.internal.storage.file.PackFile; +import org.eclipse.jgit.internal.storage.file.Pack; import org.eclipse.jgit.lib.ObjectDatabase; /** Sends the current list of pack files, sorted most recent first. */ @@ -38,7 +38,7 @@ class InfoPacksServlet extends HttpServlet { final StringBuilder out = new StringBuilder(); final ObjectDatabase db = getRepository(req).getObjectDatabase(); if (db instanceof ObjectDirectory) { - for (PackFile pack : ((ObjectDirectory) db).getPacks()) { + for (Pack pack : ((ObjectDirectory) db).getPacks()) { out.append("P "); out.append(pack.getPackFile().getName()); out.append('\n'); |