]> source.dussan.org Git - jgit.git/commit
Enhance reading of git-rebase-todo formatted files 07/15007/10
authorChristian Halstrick <christian.halstrick@sap.com>
Tue, 30 Jul 2013 12:00:18 +0000 (14:00 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 31 Oct 2013 13:22:20 +0000 (14:22 +0100)
commitc3873b584f81bc5be3fdea53e9e0e76271a9a854
tree7fb2461280f07153b2a8ce8ef8bafe1b9dedd46d
parente649287502407e10c89de03e82cc0de855e01dcf
Enhance reading of git-rebase-todo formatted files

Reading and writing files formatted like the git-rebase-todo files was
hidden in the RebaseCommand. Certain constructs (like leading tabs and
spaces) have not been handled as in native git. Also the upcoming
rebase interactive feature in EGit needs reading/writing these files
independently from a RebaseCommand.

Therefore reading and writing those files has been moved to the
Repository class. RebaseCommand gets smaller because of that and doesn't
have to deal with reading/writing files.

Additional tests for empty todo-list files, or files containing comments
have been added.

Change-Id: I323f3619952fecdf28ddf50139a88e0bea34f5ba
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
Also-by: Tobias Pfeifer <to.pfeifer@sap.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/RebaseCommandTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/api/RebaseCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/RebaseTodoFile.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/lib/RebaseTodoLine.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java