Skip to content

Commit

Permalink
Issue 20: Make commit methods in CommitBuilder non-static
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Fonseca <[email protected]>
  • Loading branch information
jonas committed Sep 14, 2009
1 parent 1e816c5 commit a53fca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/nbgit/client/CommitBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand All @@ -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) {
Expand Down

0 comments on commit a53fca5

Please sign in to comment.