List of usage examples for org.eclipse.jgit.lib Constants PACKED_REFS
String PACKED_REFS
To view the source code for org.eclipse.jgit.lib Constants PACKED_REFS.
Click Source Link
From source file:it.com.atlassian.labs.speakeasy.util.jgit.WalkRemoteObjectDatabase.java
License:Eclipse Distribution License
/** * Read a standard Git packed-refs file to discover known references. * * @param avail/*from w ww .j a v a 2 s . co m*/ * return collection of references. Any existing entries will be * replaced if they are found in the packed-refs file. * @throws TransportException * an error occurred reading from the packed refs file. */ protected void readPackedRefs(final Map<String, Ref> avail) throws TransportException { try { final BufferedReader br = openReader(ROOT_DIR + Constants.PACKED_REFS); try { readPackedRefsImpl(avail, br); } finally { br.close(); } } catch (FileNotFoundException notPacked) { // Perhaps it wasn't worthwhile, or is just an older repository. } catch (IOException e) { throw new TransportException(getURI(), JGitText.get().errorInPackedRefs, e); } }