public class RebaseTodoFile extends Object
| Constructor and Description |
|---|
RebaseTodoFile(Repository repo) |
| Modifier and Type | Method and Description |
|---|---|
List<RebaseTodoLine> |
readRebaseTodo(String path,
boolean includeComments)
Read a file formatted like the git-rebase-todo file.
|
void |
writeRebaseTodoFile(String path,
List<RebaseTodoLine> steps,
boolean append)
Write a file formatted like a git-rebase-todo file.
|
public RebaseTodoFile(Repository repo)
repo - public List<RebaseTodoLine> readRebaseTodo(String path, boolean includeComments) throws IOException
path - path to the file relative to the repository's git-dir. E.g.
"rebase-merge/git-rebase-todo" or "rebase-append/done"includeComments - true if also comments should be reportedIOExceptionpublic void writeRebaseTodoFile(String path, List<RebaseTodoLine> steps, boolean append) throws IOException
path - path to the file relative to the repository's git-dir. E.g.
"rebase-merge/git-rebase-todo" or "rebase-append/done"steps - the steps to be writtenappend - whether to append to an existing file or to write a new fileIOExceptionCopyright © 2014. All rights reserved.