Browse Source

Remove getObjectsDirectory, openPack from base API

These two methods are specific to the FileRepository implementation
and should not be exposed as part of the base Repository API.  Now
that PackParser is generic and does not require these two methods
to import a pack stream into a repostiory, it is safe to remove
these and get them out of the public view.

Change-Id: I8990004d08074657f467849dabfdaa7e6674e69a
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
stable-0.11
Shawn O. Pearce 14 years ago
parent
commit
559c4661c3
  1. 18
      org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java

18
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java

@ -180,11 +180,6 @@ public abstract class Repository {
return gitDir; return gitDir;
} }
/**
* @return the directory containing the objects owned by this repository.
*/
public abstract File getObjectsDirectory();
/** /**
* @return the object database which stores this repository's data. * @return the object database which stores this repository's data.
*/ */
@ -700,19 +695,6 @@ public abstract class Repository {
getRefDatabase().close(); getRefDatabase().close();
} }
/**
* Add a single existing pack to the list of available pack files.
*
* @param pack
* path of the pack file to open.
* @param idx
* path of the corresponding index file.
* @throws IOException
* index file could not be opened, read, or is not recognized as
* a Git pack file index.
*/
public abstract void openPack(File pack, File idx) throws IOException;
public String toString() { public String toString() {
String desc; String desc;
if (getDirectory() != null) if (getDirectory() != null)

Loading…
Cancel
Save