Permalink
Browse files

Issue 20: Make commit methods in CommitBuilder non-static

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
  • Loading branch information...
1 parent 1e816c5 commit a53fca5eace94c851323a7dca4246345b6fc919c @jonas jonas committed Sep 11, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/org/nbgit/client/CommitBuilder.java
@@ -148,7 +148,7 @@ public void write() throws IOException {
doCommit(repository, index.writeTree(), personIdent, message, logger);
}
- private static String buildReflogMessage(String commitMessage) {
+ private String buildReflogMessage(String commitMessage) {
String firstLine = commitMessage;
int newlineIndex = commitMessage.indexOf("\n");
@@ -158,7 +158,7 @@ private static String buildReflogMessage(String commitMessage) {
return "\tcommit: " + firstLine;
}
- private static void doCommit(Repository repo, ObjectId treeId, PersonIdent personIdent, String message, OutputLogger logger) throws IOException {
+ private void doCommit(Repository repo, ObjectId treeId, PersonIdent personIdent, String message, OutputLogger logger) throws IOException {
final RefUpdate ru = repo.updateRef(Constants.HEAD);
ObjectId[] parentIds;
if (ru.getOldObjectId() != null) {

0 comments on commit a53fca5

Please sign in to comment.