org.eclipse.jgit.lib.Constants#INFO_REFS and
org.eclipse.jgit.lib.Constants#PACKED_REFS files.
This class is abstract as the writing of the files must be handled by the
caller. This is because it is used by transport classes as well.
| Modifier and Type | Field and Description |
|---|---|
| private final Collection |
| Access | Constructor and Description |
|---|---|
| public | RefWriter(Collection<Ref>
the complete set of references. This should have been computed
by applying updates to the advertised refs already discovered. refs)Constructor for RefWriter. |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| public void | |
| public void |
| refs | back to summary |
|---|---|
| private final Collection<Ref> refs | |
| RefWriter | back to summary |
|---|---|
| public RefWriter(Collection<Ref> refs) Constructor for RefWriter.
| |
| RefWriter | back to summary |
|---|---|
| public RefWriter(Map<String, Ref> refs) Constructor for RefWriter. | |
| RefWriter | back to summary |
|---|---|
| public RefWriter(RefList<Ref> refs) Constructor for RefWriter. | |
| writeFile | back to summary |
|---|---|
| protected abstract void writeFile(String file, byte[] content) throws IOException Handles actual writing of ref files to the git repository, which may differ slightly depending on the destination and transport.
| |
| writeInfoRefs | back to summary |
|---|---|
| public void writeInfoRefs() throws IOException Rebuild the
This method rebuilds the contents of the
| |
| writePackedRefs | back to summary |
|---|---|
| public void writePackedRefs() throws IOException Rebuild the
This method rebuilds the contents of the
| |