| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final RefDirectory |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ReflogWriter(RefDirectory refdb, boolean
true to write to disk all entries logged, false to respect the
repository's config and current log file status. forceWrite)Create writer for ref directory. |
| Modifier and Type | Method and Description |
|---|---|
| public ReflogWriter | |
| private byte[] | |
| private FileOutputStream | |
| public ReflogWriter | Returns: this writera refName, ReflogEntry java. object.a entry)org. object.Write the given entry to the ref's log. |
| public ReflogWriter | |
| public ReflogWriter | |
| private ReflogWriter | |
| public static String | Returns: the name of the ref's lock ref.name of the ref, relative to the Git repository top level
directory (so typically starts with refs/). name)Get the ref name to be used for when locking a ref's log for rewriting. |
| private boolean |
| forceWrite | back to summary |
|---|---|
| private final boolean forceWrite | |
| refdb | back to summary |
|---|---|
| private final RefDirectory refdb | |
| ReflogWriter | back to summary |
|---|---|
| public ReflogWriter(RefDirectory refdb) Create writer for ref directory.
| |
| ReflogWriter | back to summary |
|---|---|
| public ReflogWriter(RefDirectory refdb, boolean forceWrite) Create writer for ref directory.
| |
| create | back to summary |
|---|---|
| public ReflogWriter create() throws IOException Create the log directories.
| |
| encode | back to summary |
|---|---|
| private byte[] encode(ObjectId oldId, ObjectId newId, PersonIdent ident, String message) | |
| getFileOutputStream | back to summary |
|---|---|
| private FileOutputStream getFileOutputStream(File log) throws IOException | |
| log | back to summary |
|---|---|
| public ReflogWriter log(String refName, ReflogEntry entry) throws IOException Write the given entry to the ref's log.
| |
| log | back to summary |
|---|---|
| public ReflogWriter log(String refName, ObjectId oldId, ObjectId newId, PersonIdent ident, String message) throws IOException Write the given entry information to the ref's log
| |
| log | back to summary |
|---|---|
| public ReflogWriter log(RefUpdate update, String msg, boolean deref) throws IOException Write the given ref update to the ref's log.
| |
| log | back to summary |
|---|---|
| private ReflogWriter log(String refName, byte[] rec) throws IOException | |
| refLockFor | back to summary |
|---|---|
| public static String refLockFor(String name) Get the ref name to be used for when locking a ref's log for rewriting. | |
| shouldAutoCreateLog | back to summary |
|---|---|
| private boolean shouldAutoCreateLog(String refName) | |