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>
This commit is contained in:
parent
cc983454c0
commit
559c4661c3
|
@ -180,11 +180,6 @@ public File getDirectory() {
|
|||
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.
|
||||
*/
|
||||
|
@ -700,19 +695,6 @@ protected void doClose() {
|
|||
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() {
|
||||
String desc;
|
||||
if (getDirectory() != null)
|
||||
|
|
Loading…
Reference in New Issue