| Modifier and Type | Field and Description |
|---|---|
| private Repository |
| Access | Constructor and Description |
|---|---|
| public | RebaseTodoFile(Repository
a repo)org. object.Constructor for RebaseTodoFile. |
| Modifier and Type | Method and Description |
|---|---|
| private static int | Returns: the token within the range of the givenbuf that doesn't
need to be skipped, -1 if no such token found within the
range (i.e. empty line)byte buffer buf, int index of token begin tokenBegin, int index of line end lineEnd)Skip leading space, tab, CR and LF characters |
| private static void | |
| private static RebaseTodoLine | |
| public List | Returns: the list of stepspath to the file relative to the repository's git-dir. E.g.
"rebase-merge/git-rebase-todo" or "rebase-append/done" path, boolean true if also comments should be reportedRead a file formatted like the git-rebase-todo file. |
| public void | writeRebaseTodoFile(String
path to the file relative to the repository's git-dir. E.g.
"rebase-merge/git-rebase-todo" or "rebase-append/done" path, List<RebaseTodoLine> the steps to be written steps, boolean whether to append to an existing file or to write a new file append)Write a file formatted like a git-rebase-todo file. |
| repo | back to summary |
|---|---|
| private Repository repo | |
| RebaseTodoFile | back to summary |
|---|---|
| public RebaseTodoFile(Repository repo) Constructor for RebaseTodoFile.
| |
| nextParsableToken | back to summary |
|---|---|
| private static int nextParsableToken(byte[] buf, int tokenBegin, int lineEnd) Skip leading space, tab, CR and LF characters
| |
| parseComments | back to summary |
|---|---|
| private static void parseComments(byte[] buf, int tokenBegin, List<RebaseTodoLine> r, int lineEnd) | |
| parseLine | back to summary |
|---|---|
| private static RebaseTodoLine parseLine(byte[] buf, int tokenBegin, int lineEnd) | |
| readRebaseTodo | back to summary |
|---|---|
| public List Read a file formatted like the git-rebase-todo file. The "done" file is also formatted like the git-rebase-todo file. These files can be found in .git/rebase-merge/ or .git/rebase-append/ folders.
| |
| writeRebaseTodoFile | back to summary |
|---|---|
| public void writeRebaseTodoFile(String path, List<RebaseTodoLine> steps, boolean append) throws IOException Write a file formatted like a git-rebase-todo file.
| |