public class RebaseTodoFile extends Object
Constructor and Description |
---|
RebaseTodoFile(Repository repo)
Constructor for RebaseTodoFile.
|
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
- a Repository
object.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 reportedIOException
public 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 fileIOException
Copyright © 2019 Eclipse JGit Project. All rights reserved.