]> source.dussan.org Git - jgit.git/commit
Parse commitId and shortMessage of a commented out line in rebase todo 29/15129/4
authorTobias Pfeifer <to.pfeifer@web.de>
Mon, 5 Aug 2013 10:54:23 +0000 (12:54 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 31 Oct 2013 13:25:29 +0000 (14:25 +0100)
commitbaab84836ab8ed0ebd6a57dae991607b0c24039b
tree0adae3a8a20ec4abc395247ad74df67fbafac23e
parentc3873b584f81bc5be3fdea53e9e0e76271a9a854
Parse commitId and shortMessage of a commented out line in rebase todo

A rebase todo file consists of regular non-comment action lines and
comment lines. In case that a regular action line has been commented out
(i.e. prefixed with a hash '#'), the RebaseTodoLine that is representing
this line should hold the values for commitId and shortMessage even
though it's a comment line. This allows to switch between comment and
non-comment easily even after the file has been persisted and reread.

Change-Id: I56ec2ba08eaf3772e2d74d937dd496209a744d4b
Signed-off-by: Tobias Pfeifer <to.pfeifer@web.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/RebaseCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/RebaseTodoFile.java