Added merge support to CommitCommand
The CommitCommand should take care to create a merge commit if the file
$GIT_DIR/MERGE_HEAD exists. It should then read the parents for the merge
commit out of this file. It should also take care that when commiting
a merge and no commit message was specified to read the message from
$GIT_DIR/MERGE_MSG.
Finally the CommitCommand should remove these files if the commit
succeeded.
Change-Id: I4e292115085099d5b86546d2021680cb1454266c
Signed-off-by:
Christian Halstrick <christian.halstrick@sap.com>
Showing
- org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitAndLogCommandTests.java 42 additions, 5 deletions...st/tst/org/eclipse/jgit/api/CommitAndLogCommandTests.java
- org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties 2 additions, 0 deletions...lipse.jgit/resources/org/eclipse/jgit/JGitText.properties
- org.eclipse.jgit/src/org/eclipse/jgit/JGitText.java 2 additions, 0 deletionsorg.eclipse.jgit/src/org/eclipse/jgit/JGitText.java
- org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java 61 additions, 11 deletionsorg.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java
- org.eclipse.jgit/src/org/eclipse/jgit/api/WrongRepositoryStateException.java 55 additions, 0 deletions...c/org/eclipse/jgit/api/WrongRepositoryStateException.java
- org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java 6 additions, 0 deletionsorg.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java
- org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java 55 additions, 1 deletionorg.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
Loading
Please register or sign in to comment